public class HoldoutNHistoryPartitionMethod extends Object implements HistoryPartitionMethod
Partition the last part of list by holding out a fixed number of elements.
Constructor and Description |
---|
HoldoutNHistoryPartitionMethod(int n)
Create a count partitioner.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
int |
partition(List<? extends Event> data)
Compute a partition of of the data.
|
String |
toString() |
public HoldoutNHistoryPartitionMethod(int n)
Create a count partitioner.
n
- The number of items to put in the second partition.public int partition(List<? extends Event> data)
HistoryPartitionMethod
Compute a partition of of the data.
partition
in interface HistoryPartitionMethod
data
- The data to partition.