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)
| 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. |