public class CrossValidation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
k
The number of rounds of cross validation.
|
int[][] |
test
The index of testing instances.
|
int[][] |
train
The index of training instances.
|
Constructor and Description |
---|
CrossValidation(int n,
int k)
Constructor.
|
CrossValidation(int n,
int k,
boolean permutate)
Constructor.
|
public final int k
public final int[][] train
public final int[][] test
public CrossValidation(int n, int k)
n
- the number of samples.k
- the number of rounds of cross validation.public CrossValidation(int n, int k, boolean permutate)
n
- the number of samples.k
- the number of rounds of cross validation.permutate
- determiner of index permutation