cv_multi: Performing CV using random forest, allowing multiple cores

View source: R/cv_multi.R

cv_multiR Documentation

Performing CV using random forest, allowing multiple cores

Description

Performing CV using random forest, allowing multiple cores

Usage

cv_multi(x, y, method = "svm", nfolds = 5, nexp = 5)

Arguments

x

design matrix

y

factor

method

Method of the classification algorithm

nfolds

number of CV folds

nexp

number of loops

Author(s)

Kevin Wang

Examples

x = iris[51:150, -5]
y = factor(iris[51:150, 5])
res = cv_multi(x = x, y = y, method = "rf")
## Not run: 
library(furrr)
plan(multisession(workers = 5))
res = cv_multi(x = x, y = y, method = "rf", nexp = 20)
plan(future::sequential)

## End(Not run)

kevinwang09/SmokyScotch documentation built on Aug. 25, 2022, 5:41 p.m.