
public class DisjointCrossValidation extends RandomizedHoldout
| Modifier and Type | Class and Description |
|---|---|
static class |
DisjointCrossValidation.Parameterizer
Parameterization class
|
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
assignment
Partition assignment and size.
|
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 and size.
|
randombundle, labelcol, labels| Constructor and Description |
|---|
DisjointCrossValidation(RandomFactory random,
int nfold)
Constructor.
|
| 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, getLabelsprotected int nfold
protected int fold
protected int[] assignment
protected int[] sizes
public DisjointCrossValidation(RandomFactory random, int nfold)
random - Random seedingnfold - Number of folds.public void initialize(MultipleObjectsBundle bundle)
Holdoutinitialize in interface Holdoutinitialize in class AbstractHoldoutbundle - Data set bundlepublic int numberOfPartitions()
Holdoutpublic TrainingAndTestSet nextPartitioning()
HoldoutCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.