Function to calculate partial dependencies from a random forest models using a nested tibble.
rmw_predict_nested_partial_dependencies(
df_nest,
variables = NA,
n_cores = NA,
training_only = TRUE,
rename = FALSE,
verbose = FALSE,
progress = FALSE
)
Nested tibble.
Nested tibble created by rmw_model_nested_sets
.
Vector of variables to calculate partial dependencies for.
Number of CPU cores to use for the model calculations.
Should only the training set be used for prediction?
Within the partial_dependencies
nested tibble, should
the generic "variable"
name be renamed to "variable_model"
.
This is useful when "variable"
has been used as a pollutant identifier.
Should the function give messages?
Should a progress bar be displayed?
Stuart K. Grange
rmw_nest_for_modelling
,
rmw_model_nested_sets
, rmw_partial_dependencies