Description Usage Arguments Value Examples
This function does Cross-Validation Random Forest prediction.
1 | my_rf_cv(train, k_cv)
|
train |
A training data frame from my_penguins. |
k_cv |
An int representing the number of folds in cv. |
A number of the mean rate of cross-validation the MSE of predictions.
1 2 3 4 | train <- na.omit(my_penguins) %>% dplyr::select(body_mass_g, bill_length_mm,
bill_depth_mm,
flipper_length_mm)
my_rf_cv(train, 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.