tests/testCV.R

library(CrossValidate)

suppressWarnings( RNGversion("3.5.0") )
set.seed(723461)
dataset <- matrix(rnorm(50*100), nrow=50)
pseudoclass <- factor(rep(c("A", "B"), each=50))
model <- modelerCCP # obviously, other models can be used
cv <- CrossValidate(model, dataset, pseudoclass, 0.5, 10)
summary(cv)

Try the CrossValidate package in your browser

Any scripts or data that you put into this service are public.

CrossValidate documentation built on May 7, 2019, 3 a.m.