E
- public class HoldoutNPartition<E> extends Object implements PartitionAlgorithm<E>
Constructor and Description |
---|
HoldoutNPartition(int n)
Create a count partitioner.
|
Modifier and Type | Method and Description |
---|---|
int |
partition(List<E> data)
Compute a partition of some data.
|
public HoldoutNPartition(int n)
n
- The number of items to put in the second partition.public int partition(List<E> data)
PartitionAlgorithm
partition
in interface PartitionAlgorithm<E>
data
- The data to partition.