public class StratifiedCrossValidation extends AbstractHoldout
Modifier and Type | Class and Description |
---|---|
static class |
StratifiedCrossValidation.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
protected int[] |
assignment
Partition assignment, sizes
|
protected int |
fold
Holds the number of folds, current fold.
|
protected int |
nfold
Holds the number of folds, current fold.
|
protected int[] |
sizes
Partition assignment, sizes
|
bundle, labelcol, labels
Constructor and Description |
---|
StratifiedCrossValidation(int nfold)
Provides a stratified crossvalidation.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(MultipleObjectsBundle bundle)
Initialize the holdout procedure for a data set.
|
TrainingAndTestSet |
nextPartitioning()
Get the next partitioning of the given holdout.
|
int |
numberOfPartitions()
How many partitions to test.
|
allClassLabels, allClassLabels, findClassLabelColumn, getLabels
protected int nfold
protected int fold
protected int[] assignment
protected int[] sizes
public StratifiedCrossValidation(int nfold)
public int numberOfPartitions()
Holdout
public void initialize(MultipleObjectsBundle bundle)
Holdout
initialize
in interface Holdout
initialize
in class AbstractHoldout
bundle
- Data set bundlepublic TrainingAndTestSet nextPartitioning()
Holdout
Copyright © 2019 ELKI Development Team. License information.