[R] Allow passing data.frame to SHAP (#10744)
This commit is contained in:
@@ -33,7 +33,7 @@ xgb.plot.shap(
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{The data to explain as a \code{matrix} or \code{dgCMatrix}.}
|
||||
\item{data}{The data to explain as a \code{matrix}, \code{dgCMatrix}, or \code{data.frame}.}
|
||||
|
||||
\item{shap_contrib}{Matrix of SHAP contributions of \code{data}.
|
||||
The default (\code{NULL}) computes it from \code{model} and \code{data}.}
|
||||
|
||||
@@ -30,7 +30,7 @@ xgb.plot.shap.summary(
|
||||
)
|
||||
}
|
||||
\arguments{
|
||||
\item{data}{The data to explain as a \code{matrix} or \code{dgCMatrix}.}
|
||||
\item{data}{The data to explain as a \code{matrix}, \code{dgCMatrix}, or \code{data.frame}.}
|
||||
|
||||
\item{shap_contrib}{Matrix of SHAP contributions of \code{data}.
|
||||
The default (\code{NULL}) computes it from \code{model} and \code{data}.}
|
||||
|
||||
Reference in New Issue
Block a user