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()
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024