DataType
- The type of data to partition.public interface DataPartitioner<DataType>
DataPartitioner
interface defines the functionality of an object
that can create a PartitionedDataset
from a collection of data.Modifier and Type | Method and Description |
---|---|
PartitionedDataset<DataType> |
createPartition(java.util.Collection<? extends DataType> data)
Partitions the given collection of data into a training set and a
testing set.
|
PartitionedDataset<DataType> createPartition(java.util.Collection<? extends DataType> data)
data
- The data to partition.