public final class DecisionNode extends TreeNode
DecisionTree
, which encapsulates a binary decision over a
feature in an example.Constructor and Description |
---|
DecisionNode(String id,
Decision decision,
TreeNode left,
TreeNode right) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Decision |
getDecision() |
TreeNode |
getLeft() |
TreeNode |
getRight() |
int |
hashCode() |
boolean |
isTerminal() |
String |
toString() |
public Decision getDecision()
public boolean isTerminal()
isTerminal
in class TreeNode
TerminalNode
) rather than a DecisionNode
public TreeNode getLeft()
public TreeNode getRight()
Copyright © 2014–2018. All rights reserved.