Description Usage Arguments Value Examples
This function performs random forest algorithm with k-fold cross validation.
1 | my_rf_cv(train, k_cv)
|
train |
input data frame |
k_cv |
integer representing the number of folds |
a numeric with the cross-validation error
1 2 3 | dat <- na.omit(my_penguins[, c("body_mass_g", "bill_length_mm",
"bill_depth_mm", "flipper_length_mm")])
my_rf_cv(dat, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.