cc.mallet.classify
Class DecisionTree.Node
java.lang.Object
cc.mallet.classify.DecisionTree.Node
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- DecisionTree
public static class DecisionTree.Node
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecisionTree.Node
public DecisionTree.Node(InstanceList ilist,
DecisionTree.Node parent,
FeatureSelection fs)
depth
public int depth()
- The root has depth zero.
isLeaf
public boolean isLeaf()
isRoot
public boolean isRoot()
getFeatureAbsentChild
public DecisionTree.Node getFeatureAbsentChild()
getFeaturePresentChild
public DecisionTree.Node getFeaturePresentChild()
getSplitInfoGain
public double getSplitInfoGain()
getSplitFeature
public java.lang.Object getSplitFeature()
split
public void split(FeatureSelection fs)
stopGrowth
public void stopGrowth()
induceFeatures
public void induceFeatures(AugmentableFeatureVector afv,
FeatureSelection featuresAlreadyThere,
FeatureSelection[] perClassFeaturesAlreadyThere,
FeatureSelection newFeatureSelection,
FeatureSelection[] perClassNewFeatureSelection,
boolean withInteriorNodes,
boolean addPerClassFeatures,
double classEntropyThreshold)
getName
public java.lang.String getName()
print
public void print()