public final class DecisionTreeConditionalNode extends Object implements DecisionTreeNode
Constructor and Description |
---|
DecisionTreeConditionalNode(int col,
double threshold,
DecisionTreeNode thenNode,
DecisionTreeNode elseNode,
DecisionTreeNode missingNode)
Constructs a new instance of decision tree conditional node.
|
Modifier and Type | Method and Description |
---|---|
int |
getCol() |
DecisionTreeNode |
getElseNode() |
DecisionTreeNode |
getMissingNode() |
DecisionTreeNode |
getThenNode() |
double |
getThreshold() |
Double |
predict(Vector features)
Make a prediction for the specified input arguments.
|
void |
setElseNode(DecisionTreeNode elseNode) |
void |
setMissingNode(DecisionTreeNode missingNode) |
void |
setThenNode(DecisionTreeNode thenNode) |
String |
toString() |
String |
toString(boolean pretty) |
public DecisionTreeConditionalNode(int col, double threshold, DecisionTreeNode thenNode, DecisionTreeNode elseNode, DecisionTreeNode missingNode)
col
- Column of the value to be tested.threshold
- Threshold.thenNode
- Node that will be used in case tested value is greater then threshold.elseNode
- Node that will be used in case tested value is not greater then threshold.missingNode
- Node that will be used in case tested value is not presented.public int getCol()
public double getThreshold()
public DecisionTreeNode getThenNode()
public void setThenNode(DecisionTreeNode thenNode)
public DecisionTreeNode getElseNode()
public void setElseNode(DecisionTreeNode elseNode)
public DecisionTreeNode getMissingNode()
public void setMissingNode(DecisionTreeNode missingNode)
public String toString(boolean pretty)
toString
in interface IgniteModel<Vector,Double>
pretty
- Use pretty mode.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024