public class LabeledDatasetTestTrainPair extends Object implements Serializable
| Constructor and Description |
|---|
LabeledDatasetTestTrainPair(LabeledDataset dataset,
double testPercentage)
Creates two subsets of given dataset.
|
| Modifier and Type | Method and Description |
|---|---|
LabeledDataset |
test()
Test subset of the whole dataset.
|
LabeledDataset |
train()
Train subset of the whole dataset.
|
public LabeledDatasetTestTrainPair(LabeledDataset dataset, double testPercentage)
NOTE: This method uses next algorithm with O(n log n) by calculations and O(n) by memory.
dataset - The dataset to split on train and test subsets.testPercentage - The percentage of the test subset.public LabeledDataset train()
public LabeledDataset test()
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018