edu.umass.cs.mallet.base.classify
Class DecisionTree

java.lang.Object
  extended byedu.umass.cs.mallet.base.classify.Classifier
      extended byedu.umass.cs.mallet.base.classify.DecisionTree
All Implemented Interfaces:
java.io.Serializable

public class DecisionTree
extends Classifier
implements java.io.Serializable

Decision Tree classifier.

See Also:
Serialized Form

Nested Class Summary
static class DecisionTree.Node
           
 
Field Summary
 double addFeaturesClassEntropyThreshold
           
 
Fields inherited from class edu.umass.cs.mallet.base.classify.Classifier
instancePipe
 
Constructor Summary
DecisionTree(Pipe instancePipe, DecisionTree.Node root)
           
 
Method Summary
 Classification classify(Instance instance)
           
 DecisionTree.Node getRoot()
           
 void induceFeatures(InstanceList ilist, boolean withFeatureShrinkage, boolean inducePerClassFeatures)
           
 
Methods inherited from class edu.umass.cs.mallet.base.classify.Classifier
classify, classify, classify, getAccuracy, getAccuracy, getAlphabet, getF1, getF1, getF1, getF1, getInstancePipe, getLabelAlphabet, getPrecision, getPrecision, getPrecision, getPrecision, getRecall, getRecall, getRecall, getRecall, print, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addFeaturesClassEntropyThreshold

public double addFeaturesClassEntropyThreshold
Constructor Detail

DecisionTree

public DecisionTree(Pipe instancePipe,
                    DecisionTree.Node root)
Method Detail

getRoot

public DecisionTree.Node getRoot()

classify

public Classification classify(Instance instance)
Specified by:
classify in class Classifier

induceFeatures

public void induceFeatures(InstanceList ilist,
                           boolean withFeatureShrinkage,
                           boolean inducePerClassFeatures)