Description Usage Arguments Value Examples
my_rf_cv implements Breiman's random forest algorithm (based on Breiman and Cutler's original Fortran code) for classification and regression. The function runs the algoritms for the given number of folds and implements the algoritm on my_gapminder, predicting lifeExp using covariate gdpPercap.
1 | my_rf_cv(k)
|
k |
number of folds. |
Return the average Mean Squared Error across all k folds.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.