DataType
- The type of data to create the folds for.public class LeaveOneOutFoldCreator<DataType> extends java.lang.Object implements ValidationFoldCreator<DataType,DataType>, java.io.Serializable
LeaveOneOutFoldCreator
class implements the leave-one-out method
for creating training-testing folds for a cross-validation experiment. The
leave-one-out method takes a data set containing n items and creates n folds
where each fold contains n - 1 training items and 1 testing item.Constructor and Description |
---|
LeaveOneOutFoldCreator()
Creates a new instance of LeaveOneOutCreator
|
Modifier and Type | Method and Description |
---|---|
java.util.List<PartitionedDataset<DataType>> |
createFolds(java.util.Collection<? extends DataType> data)
Creates a list of folds that is the same size as the given data.
|
public LeaveOneOutFoldCreator()
public java.util.List<PartitionedDataset<DataType>> createFolds(java.util.Collection<? extends DataType> data)
createFolds
in interface ValidationFoldCreator<DataType,DataType>
data
- The data to create the folds for.