public class RandomizedCrossValidation extends RandomizedHoldout
Modifier and Type | Class and Description |
---|---|
static class |
RandomizedCrossValidation.Parameterizer
Parameterization class
|
Modifier and Type | Field and Description |
---|---|
protected int |
fold
Holds the number of folds, current fold.
|
protected int |
nfold
Holds the number of folds, current fold.
|
random
bundle, labelcol, labels
Constructor and Description |
---|
RandomizedCrossValidation(RandomFactory random,
int nfold)
Constructor for n-fold cross-validation.
|
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
public RandomizedCrossValidation(RandomFactory random, int nfold)
random
- Random seednfold
- Number of foldspublic void initialize(MultipleObjectsBundle bundle)
Holdout
initialize
in interface Holdout
initialize
in class AbstractHoldout
bundle
- Data set bundlepublic int numberOfPartitions()
Holdout
public TrainingAndTestSet nextPartitioning()
Holdout
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.