cv_multi | R Documentation |
Performing CV using random forest, allowing multiple cores
cv_multi(x, y, method = "svm", nfolds = 5, nexp = 5)
x |
design matrix |
y |
factor |
method |
Method of the classification algorithm |
nfolds |
number of CV folds |
nexp |
number of loops |
Kevin Wang
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.