public interface TreeModelStatistics extends ModelStatistics, Verifiable
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getAllLeaves()
Returns all leaves of the tree, that is all nodes, that
Node.isLeaf() function returns true. |
java.util.List |
getAllNodes()
Returns all nodes of the tree, which are not pruned.
|
int[] |
getLeafIds()
Returns all ids that are used by the tree leaves.
|
int |
getLeaves()
Returns number of all leaves in the tree.
|
java.lang.String |
getName() |
Node |
getNode(int nodeID)
Returns node with specified id
|
int[] |
getNodeIds()
Returns all ids that are used by the tree nodes.
|
int |
getNodes()
Returns number of all nodes in the tree.
|
int |
getNodesBeforePrunning()
Returns number of nodes after tree building, before prunning.
|
NullStrategyEnum |
getNullStrategy()
Which null strategy is being used.
|
int |
getNumberOfTrainingObservations()
Returns number of observations in training set for this tree.
|
Node |
getRoot()
Gets the root node of this decision tree.
|
java.lang.Object[] |
getTargetValues()
Get values of target.
|
int |
getTreeDepth()
Returns the tree depth, that is the highest level of tree node.
|
void |
setName(java.lang.String name) |
void |
setNullStrategy(NullStrategyEnum strategy)
Set the null processing strategy.
|
verifyNode getRoot()
java.lang.Object[] getTargetValues()
biz.sc.mm.dm.supervised.classification.ClassificationModel#getTargetCategorySet().
Regression Trees: returns nulljava.util.List getAllNodes()
Node.java.util.List getAllLeaves()
Node.isLeaf() function returns true.Node.Node getNode(int nodeID)
nodeID - id of the node to returnint[] getNodeIds()
int[] getLeafIds()
int getNodes()
int getLeaves()
int getTreeDepth()
int getNodesBeforePrunning()
-1 if
not supported by the algorithm.int getNumberOfTrainingObservations()
NullStrategyEnum getNullStrategy()
void setNullStrategy(NullStrategyEnum strategy)
strategy - The strategy id.java.lang.String getName()
void setName(java.lang.String name)