public class LabeledVectorSetTestTrainPair extends Object implements Serializable
Constructor and Description |
---|
LabeledVectorSetTestTrainPair(LabeledVectorSet dataset,
double testPercentage)
Creates two subsets of given dataset.
|
Modifier and Type | Method and Description |
---|---|
LabeledVectorSet |
test()
Test subset of the whole dataset.
|
LabeledVectorSet |
train()
Train subset of the whole dataset.
|
public LabeledVectorSetTestTrainPair(LabeledVectorSet 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 LabeledVectorSet train()
public LabeledVectorSet test()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019