@Deprecated public class TreeNode extends Object implements IgniteModel<Vector,Double>
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeNode.Type
Deprecated.
Type of node.
|
| Constructor and Description |
|---|
TreeNode(long id,
int treeId)
Deprecated.
Create an instance of TreeNode.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDepth()
Deprecated.
|
NodeId |
getId()
Deprecated.
|
double |
getImpurity()
Deprecated.
|
TreeNode |
getLeft()
Deprecated.
|
TreeNode |
getRight()
Deprecated.
|
TreeNode.Type |
getType()
Deprecated.
|
Double |
predict(Vector features)
Deprecated.
Make a prediction for the specified input arguments.
|
NodeId |
predictNextNodeKey(Vector features)
Deprecated.
Returns leaf node for feature vector in according to decision tree.
|
void |
setImpurity(double impurity)
Deprecated.
|
void |
setVal(double val)
Deprecated.
|
List<TreeNode> |
toConditional(int featureId,
double val)
Deprecated.
Convert node to conditional node.
|
void |
toLeaf(double val)
Deprecated.
Convert node to leaf.
|
public TreeNode(long id,
int treeId)
id - Id in according to breadth-first search ordering.treeId - Tree id.public Double predict(Vector features)
public NodeId predictNextNodeKey(Vector features)
features - Features.public List<TreeNode> toConditional(int featureId, double val)
featureId - Feature id.val - Value.public void toLeaf(double val)
val - Value.public NodeId getId()
public void setVal(double val)
public TreeNode.Type getType()
public void setImpurity(double impurity)
public double getImpurity()
public int getDepth()
public TreeNode getLeft()
public TreeNode getRight()
GridGain In-Memory Computing Platform : ver. 8.9.38 Release Date : September 22 2026