public class DecisionTreeData extends FeatureMatrixWithLabelsOnHeapData
data
of the containing matrix of features and vector of labels stored in heap
with index on features.Constructor and Description |
---|
DecisionTreeData(double[][] features,
double[] labels,
boolean buildIdx)
Constructs a new instance of decision tree data.
|
Modifier and Type | Method and Description |
---|---|
TreeDataIndex |
createIndexByFilter(int depth,
TreeFilter filter)
Builds index in according to current tree depth and cached indexes in upper levels.
|
DecisionTreeData |
filter(TreeFilter filter)
Filters objects and returns only data that passed filter.
|
double[] |
getCopiedOriginalLabels() |
void |
setCopiedOriginalLabels(double[] copiedOriginalLabels) |
void |
sort(int col)
Sorts data by specified column in ascending order.
|
close, getFeatures, getLabels
public DecisionTreeData(double[][] features, double[] labels, boolean buildIdx)
features
- Matrix with features.labels
- Vector with labels.buildIdx
- Build index.public DecisionTreeData filter(TreeFilter filter)
filter
- Filter.public void sort(int col)
col
- Column.public double[] getCopiedOriginalLabels()
public void setCopiedOriginalLabels(double[] copiedOriginalLabels)
public TreeDataIndex createIndexByFilter(int depth, TreeFilter filter)
depth
- Tree Depth.filter
- Filter.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020