Description Usage Arguments Value
View source: R/random-forest-model.R
Partial dependence plot
1 2 | partial_dependence_plot(rf_model, data, return_plot = FALSE, cols = 2,
ylabel = "y", verbose = FALSE)
|
rf_model |
random forest model obtained from the function fit_random_forest. |
data |
data used to fit the random forest model |
return_plot |
should plots be showed? Boolean. FALSE by default. |
cols |
number of columns to use when plotting the dependence plots. Defaults to 2. |
ylabel |
label of the y axis. Character. Defaults to "y". |
verbose |
be verbose? Boolean. |
a list with x and y values for the partial dependence graph for each variable. If show_plots is TRUE, NULL is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.