Split a training set into k-folds, with a test sets equal to 1/kth of the data and training sets the rest of it.
Split a training set into k-folds, with a test sets equal to 1/kth of the data and training sets the rest of it. Returns a IndexedSeq of results, one for each execution.
Syntax: crossValidate(K, myDataSet)( (trainSet,testSet) => {produce a result} )
Leave-one-out Cross validation Split a training set into dataset.
Leave-one-out Cross validation Split a training set into dataset.size-folds, with a test sets equal to 1 of the data and training sets for the rest of it. Returns a IndexedSeq of results, one for each execution.
This is probably very slow!
Syntax: loocv(myDataSet)( (trainSet,testSet) => {produce a result} )
Provides useful utilties for dealing with datasets that have a defined order.