R version 4.5.0 RC (2025-04-04 r88113 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(CrossValidate) Loading required package: Modeler Loading required package: ClassDiscovery Loading required package: cluster Loading required package: oompaBase Loading required package: ClassComparison > > 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) [1] 1 [1] 2 [1] 3 [1] 4 [1] 5 [1] 6 [1] 7 [1] 8 [1] 9 [1] 10 > summary(cv) --------------- Cross-validation was performed using 50 percent of the data for training. The data set was randomly split into training and testing sets 10 times. Training Accuracy: sens spec acc ppv npv Min. 0.760 0.720 0.760 0.7407407 0.7777778 1st Qu. 0.810 0.810 0.805 0.8122910 0.7952899 Median 0.840 0.840 0.850 0.8330435 0.8430769 Mean 0.852 0.832 0.842 0.8364496 0.8524173 3rd Qu. 0.880 0.880 0.875 0.8787500 0.8800000 Max. 0.960 0.880 0.920 0.8888889 0.9565217 Validation Accuracy: sens spec acc ppv npv Min. 0.320 0.320 0.400 0.4137931 0.3809524 1st Qu. 0.370 0.400 0.440 0.4444444 0.4381559 Median 0.480 0.500 0.460 0.4472222 0.4654762 Mean 0.456 0.468 0.462 0.4602576 0.4613847 3rd Qu. 0.510 0.520 0.475 0.4765396 0.4724507 Max. 0.600 0.600 0.540 0.5384615 0.5416667 > > proc.time() user system elapsed 0.62 0.09 0.71