DataType
- The type of the data in the dataset.public class DefaultPartitionedDataset<DataType> extends java.lang.Object implements PartitionedDataset<DataType>
Constructor and Description |
---|
DefaultPartitionedDataset(java.util.Collection<DataType> trainingSet,
java.util.Collection<DataType> testingSet)
Creates a new instance of PartitionedDataset.
|
Modifier and Type | Method and Description |
---|---|
static <DataType> DefaultPartitionedDataset<DataType> |
create(java.util.Collection<DataType> trainingSet,
java.util.Collection<DataType> testingSet)
Convenience method to create a new
DefaultPartitionedDataset
from the two given collections. |
java.util.Collection<DataType> |
getTestingSet()
Gets the testing dataset.
|
java.util.Collection<DataType> |
getTrainingSet()
Gets the training dataset.
|
protected void |
setTestingSet(java.util.Collection<DataType> testingSet)
Sets the testing set.
|
protected void |
setTrainingSet(java.util.Collection<DataType> trainingSet)
Sets the training set.
|
public java.util.Collection<DataType> getTrainingSet()
PartitionedDataset
getTrainingSet
in interface PartitionedDataset<DataType>
public java.util.Collection<DataType> getTestingSet()
PartitionedDataset
getTestingSet
in interface PartitionedDataset<DataType>
protected void setTrainingSet(java.util.Collection<DataType> trainingSet)
trainingSet
- The new training set.protected void setTestingSet(java.util.Collection<DataType> testingSet)
testingSet
- The new testing set.public static <DataType> DefaultPartitionedDataset<DataType> create(java.util.Collection<DataType> trainingSet, java.util.Collection<DataType> testingSet)
DefaultPartitionedDataset
from the two given collections.DataType
- The type of the data in the dataset.trainingSet
- The training set.testingSet
- The testing set.