my_rf_cv: My random forest cross validation

Description Usage Arguments Value Examples

View source: R/my_rf_cv.R

Description

This function calculates the cross-validation error of a k-fold cross-validation of a 100-branch random forest algorithm performed on three variables of the penguins data.

Usage

1

Arguments

k

A numeric containing the number of folds to use in the k-fold cross-validation.

Value

A numeric representing the average mean-squared-error across all k folds.

Examples

1

thulinjt/project3package documentation built on March 22, 2021, 2:41 p.m.