Description Usage Arguments Value
View source: R/partial_dependence.R
Get partial variable dependences.
1 | partial_dependence(data, pred_vars, long = FALSE, ...)
|
data |
A data frame with columns "model" and "train" containing the model objects and training data, respectively. |
pred_vars |
Names of predictors for which partial dependence should be computed. |
long |
Boolean. Whether output should be as "long" table suited for plotting. Default is FALSE. |
... |
Arguments passed on to pdp::partial. |
Input data frame with added column "pdp" containing the partial variable dependence.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.