public class CompressedDT extends water.Keyed<CompressedDT>
Constructor and Description |
---|
CompressedDT(AbstractCompressedNode[] nodes,
int leavesCount) |
Modifier and Type | Method and Description |
---|---|
int |
extractRulesStartingWithNode(int nodeIndex,
java.lang.String actualRule,
int nextFreeSpot) |
java.lang.String[] |
getListOfRules() |
AbstractCompressedNode[] |
getNodes() |
DTPrediction |
predictRowStartingFromNode(double[] rowValues,
int actualNodeIndex,
java.lang.String ruleExplanation)
Makes prediction by recursively evaluating the data through the tree.
|
java.lang.String |
toString() |
checksum_impl, checksum_impl, checksum, checksum, getKey, makeSchema, readAll_impl, readAll, remove_impl, remove_impl, remove_self_key_impl, remove, remove, remove, remove, remove, remove, removeQuietly, writeAll_impl, writeAll
public CompressedDT(AbstractCompressedNode[] nodes, int leavesCount)
public DTPrediction predictRowStartingFromNode(double[] rowValues, int actualNodeIndex, java.lang.String ruleExplanation)
rowValues
- - data row to find prediction foractualNodeIndex
- - actual node to evaluate and then go to selected childpublic java.lang.String toString()
toString
in class java.lang.Object
public int extractRulesStartingWithNode(int nodeIndex, java.lang.String actualRule, int nextFreeSpot)
public java.lang.String[] getListOfRules()
public AbstractCompressedNode[] getNodes()