Description Usage Arguments Value Examples
This function performs k-fold cross validation on a random forest model generated from internal data on penguins. Model trained is body_mass_g ~ bill_length_mm + bill_depth_mm + flipper_length_mm and number of trees is 100. User can specify the number of folds to be used.
1 | my_rf_cv(k)
|
k |
A numeric indicating the number of folds |
Returns average mean squared error of the random forest model across all k folds from k-fold cross-validation
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.