INSTANCE
- Type of instancespublic class LeaveOneOut<INSTANCE> extends Object implements CrossValidator<ListDataset<INSTANCE>>
ListDataset
.
The number of iterations performed by the iterator is equal
to the number of data items.
Upon each iteration, the dataset is split into training and validation sets. The validation set will have exactly one instance. All remaining instances are placed in the training set. As the iterator progresses, every instance will be included in the validation set one time.
Constructor and Description |
---|
LeaveOneOut() |
Modifier and Type | Method and Description |
---|---|
CrossValidationIterable<ListDataset<INSTANCE>> |
createIterable(ListDataset<INSTANCE> data)
Create the iterable from the dataset.
|
String |
toString() |
public LeaveOneOut()
public CrossValidationIterable<ListDataset<INSTANCE>> createIterable(ListDataset<INSTANCE> data)
CrossValidator
createIterable
in interface CrossValidator<ListDataset<INSTANCE>>
data
- the dataset