public class DecisionTreeData extends Object implements AutoCloseable
data of the containing matrix of features and vector of labels stored in heap.| Constructor and Description |
|---|
DecisionTreeData(double[][] features,
double[] labels)
Constructs a new instance of decision tree data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DecisionTreeData |
filter(TreeFilter filter)
Filters objects and returns only data that passed filter.
|
double[][] |
getFeatures() |
double[] |
getLabels() |
void |
sort(int col)
Sorts data by specified column in ascending order.
|
public DecisionTreeData(double[][] features,
double[] labels)
features - Matrix with features.labels - Vector with labels.public DecisionTreeData filter(TreeFilter filter)
filter - Filter.public void sort(int col)
col - Column.public double[][] getFeatures()
public double[] getLabels()
public void close()
close in interface AutoCloseable
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018