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, pidpublic 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.Objectpublic final java.lang.StringBuilder toString2(java.lang.StringBuilder sb,
int depth)
toString2 in class DTree.Nodeprotected water.AutoBuffer compress(water.AutoBuffer ab,
water.AutoBuffer abAux)
compress in class DTree.Nodeprotected int size()
size in class DTree.Nodeprotected int numNodes()
numNodes in class DTree.Nodepublic final double pred()
public final double getSplitPrediction()