public final class TerminalNode extends TreeNode
DecisionTree
, which contains a Prediction
for a target
rather than a decision over an example.DecisionNode
,
Serialized FormConstructor 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 TreeNode
TerminalNode
) rather than a DecisionNode
Copyright © 2014–2018. All rights reserved.