public final class DecisionTreeConditionalNode extends DecisionTreeNode
Constructor and Description |
---|
DecisionTreeConditionalNode()
For jackson serialization needs.
|
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 DecisionTreeConditionalNode()
public Double predict(Vector features)
features
- Input arguments.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)
pretty
- Use pretty mode.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.0 Release Date : September 11 2021