fit_regression_random_forest | R Documentation |
klassets_xy
objectFit regression random forest to klassets_xy
object
fit_regression_random_forest( df, ntree = 500L, maxdepth = Inf, trace = FALSE, ... )
df |
A object from |
ntree |
Number of trees to grow for the forest. |
maxdepth |
Max depth of each trees. |
trace |
A logical indicating if a progress bar shall be printed while the forest grows. |
... |
Options for |
df <- sim_xy() df dfrrf <- fit_regression_random_forest(df) dfrrf plot(dfrrf) df <- sim_xy(n = 1000, x_dist = runif) df <- dplyr::mutate(df, y = y + 2*sin(5 * x)) plot(df) plot(fit_regression_random_forest(df)) plot(fit_regression_random_forest(df, ntree = 100, maxdepth = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.