| plot_tuning | R Documentation |
rf_tuning()Plots the tuning of the hyperparameters num.trees, mtry, and min.node.size performed by rf_tuning().
plot_tuning(
model,
point.color = viridis::viridis(
100,
option = "F"
),
verbose = TRUE
)
model |
A model fitted with |
point.color |
Colors of the plotted points. Can be a single color name (e.g. "red4"), a character vector with hexadecimal codes (e.g. "#440154FF" "#21908CFF" "#FDE725FF"), or function generating a palette (e.g. |
verbose |
Logical, if |
A ggplot.
rf_tuning()
Other visualization:
plot_evaluation(),
plot_importance(),
plot_moran(),
plot_optimization(),
plot_residuals_diagnostics(),
plot_response_curves(),
plot_response_surface(),
plot_training_df(),
plot_training_df_moran()
if(interactive()){
data(
plants_rf,
plants_xy
)
plants_rf_tuned <- rf_tuning(
model = plants_rf,
num.trees = c(25, 50),
mtry = c(5, 10),
min.node.size = c(10, 20),
xy = plants_xy,
repetitions = 5,
n.cores = 1
)
plot_tuning(plants_rf_tuned)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.