KEY
- Type of groupsINSTANCE
- Type of instancespublic class GroupedLeaveOneOut<KEY,INSTANCE> extends Object implements CrossValidator<GroupedDataset<KEY,ListDataset<INSTANCE>,INSTANCE>>
GroupedDataset
. 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. The iterator maintains the respective groups of the training and validation items.
Constructor and Description |
---|
GroupedLeaveOneOut() |
Modifier and Type | Method and Description |
---|---|
CrossValidationIterable<GroupedDataset<KEY,ListDataset<INSTANCE>,INSTANCE>> |
createIterable(GroupedDataset<KEY,ListDataset<INSTANCE>,INSTANCE> data)
Create the iterable from the dataset.
|
String |
toString() |
public GroupedLeaveOneOut()
public CrossValidationIterable<GroupedDataset<KEY,ListDataset<INSTANCE>,INSTANCE>> createIterable(GroupedDataset<KEY,ListDataset<INSTANCE>,INSTANCE> data)
CrossValidator
createIterable
in interface CrossValidator<GroupedDataset<KEY,ListDataset<INSTANCE>,INSTANCE>>
data
- the dataset