Description Usage Arguments Value Examples
This function uses a random forest algorithm with 100 trees on the
my_penguins
data from the palmerpenguins
package to predict
output body_mass_g
with covariates bill_length_mm
,
bill_depth_mm
, and flipper_length_mm
. Also computes the
cross-validation mean square error.
1 | my_rf_cv(k)
|
k |
An integer representing the number of folds used in cross-validation. |
Numeric representing the cross-validation error, or the average MSE across all folds.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.