powered by
Run a cross-validation experiment
runCV(algorithm, dataset, numFolds, cores)
Returns a list with the mean results of the numFolds executions.
Algorithm to be executed in the CV. It must has the parameters to be used in the executions.
Dataset to perform the CV. It is divided in numFolds disjoint partitions and in each iteration, one is used for test and the rest for train.
Number of folds for the cross-validation procedure.
Number of cores to execute in parallel. If it is missed, default value is 1 (sequential execution).
#Load datasets iris <- RKEEL::loadKeelDataset("iris") #Create algorithm learner_C45_C <- RKEEL::C45_C(iris, iris) #Perform 5-folds CV results <- RKEEL::runCV(learner_C45_C, iris, 5)
Run the code above in your browser using DataLab