public static final class DTree.LeafNode extends DTree.Node
Modifier and Type | Field and Description |
---|---|
float |
_pred |
_nid, _pid, _tree
Constructor and Description |
---|
LeafNode(DTree.LeafNode node,
DTree tree) |
LeafNode(DTree tree,
int pid) |
LeafNode(DTree tree,
int pid,
int nid) |
Modifier and Type | Method and Description |
---|---|
protected water.AutoBuffer |
compress(water.AutoBuffer ab,
water.AutoBuffer abAux) |
double |
getSplitPrediction() |
protected int |
numNodes() |
double |
pred() |
protected int |
size() |
java.lang.String |
toString() |
java.lang.StringBuilder |
toString2(java.lang.StringBuilder sb,
int depth) |
nid, pid
public LeafNode(DTree tree, int pid)
public LeafNode(DTree tree, int pid, int nid)
public LeafNode(DTree.LeafNode node, DTree tree)
public java.lang.String toString()
toString
in class java.lang.Object
public final java.lang.StringBuilder toString2(java.lang.StringBuilder sb, int depth)
toString2
in class DTree.Node
protected water.AutoBuffer compress(water.AutoBuffer ab, water.AutoBuffer abAux)
compress
in class DTree.Node
protected int size()
size
in class DTree.Node
protected int numNodes()
numNodes
in class DTree.Node
public final double pred()
public final double getSplitPrediction()