public final class TerminalNode extends TreeNode
DecisionTree, which contains a Prediction for a target
rather than a decision over an example.DecisionNode,
Serialized Form| Constructor and Description |
|---|
TerminalNode(String id,
Prediction prediction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getCount() |
Prediction |
getPrediction() |
int |
hashCode() |
boolean |
isTerminal() |
String |
toString() |
void |
update(Example train) |
public TerminalNode(String id, Prediction prediction)
public Prediction getPrediction()
public int getCount()
public void update(Example train)
public boolean isTerminal()
isTerminal in class TreeNodeTerminalNode) rather than a DecisionNodeCopyright © 2014–2018. All rights reserved.