Class LeaveOneOut
- java.lang.Object
-
- elki.evaluation.classification.holdout.AbstractHoldout
-
- elki.evaluation.classification.holdout.LeaveOneOut
-
- All Implemented Interfaces:
Holdout
public class LeaveOneOut extends AbstractHoldout
A leave-one-out-holdout is to provide a set of partitions of a database where each instances once hold out as a test instance while the respectively remaining instances are training instances.- Since:
- 0.7.0
- Author:
- Arthur Zimek
-
-
Constructor Summary
Constructors Constructor Description LeaveOneOut()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitialize(MultipleObjectsBundle bundle)Initialize the holdout procedure for a data set.TrainingAndTestSetnextPartitioning()Get the next partitioning of the given holdout.intnumberOfPartitions()How many partitions to test.-
Methods inherited from class elki.evaluation.classification.holdout.AbstractHoldout
allClassLabels, allClassLabels, findClassLabelColumn, getLabels
-
-
-
-
Method Detail
-
initialize
public void initialize(MultipleObjectsBundle bundle)
Description copied from interface:HoldoutInitialize the holdout procedure for a data set.- Specified by:
initializein interfaceHoldout- Overrides:
initializein classAbstractHoldout- Parameters:
bundle- Data set bundle
-
numberOfPartitions
public int numberOfPartitions()
Description copied from interface:HoldoutHow many partitions to test.- Returns:
- Number of partitions.
-
nextPartitioning
public TrainingAndTestSet nextPartitioning()
Description copied from interface:HoldoutGet the next partitioning of the given holdout.- Returns:
- Next partitioning of the data set
-
-