MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / cvSet

Method cvSet

JSAT/src/jsat/DataSet.java:519–524  ·  view source on GitHub ↗

Creates folds data sets that contain data from this data set. The data points in each set will be random. These are meant for cross validation @param folds the number of cross validation sets to create. Should be greater then 1 @param rand the source of randomness @return the list of data

(int folds, Random rand)

Source from the content-addressed store, hash-verified

517 * @return the list of data sets.
518 */
519 public List<Type> cvSet(int folds, Random rand)
520 {
521 double[] splits = new double[folds];
522 Arrays.fill(splits, 1.0/folds);
523 return randomSplit(rand, splits);
524 }
525
526 /**
527 * Creates <tt>folds</tt> data sets that contain data from this data set.

Callers 11

trainCMethod · 0.80
trainMethod · 0.80
trainCMethod · 0.80
trainCMethod · 0.80
trainCMethod · 0.80
trainCMethod · 0.80
trainMethod · 0.80
trainMethod · 0.80
trainCMethod · 0.80

Calls 2

randomSplitMethod · 0.95
getRandomMethod · 0.95

Tested by

no test coverage detected