Package cc.mallet.classify
Class DecisionTree
- java.lang.Object
-
- cc.mallet.classify.Classifier
-
- cc.mallet.classify.DecisionTree
-
- All Implemented Interfaces:
AlphabetCarrying
,java.io.Serializable
public class DecisionTree extends Classifier implements java.io.Serializable
Decision Tree classifier.- Author:
- Andrew McCallum mccallum@cs.umass.edu
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DecisionTree.Node
-
Field Summary
Fields Modifier and Type Field Description double
addFeaturesClassEntropyThreshold
-
Fields inherited from class cc.mallet.classify.Classifier
instancePipe
-
-
Constructor Summary
Constructors Constructor Description DecisionTree(Pipe instancePipe, DecisionTree.Node root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classification
classify(Instance instance)
DecisionTree.Node
getRoot()
void
induceFeatures(InstanceList ilist, boolean withFeatureShrinkage, boolean inducePerClassFeatures)
-
Methods inherited from class cc.mallet.classify.Classifier
alphabetsMatch, classify, classify, classify, getAccuracy, getAlphabet, getAlphabets, getAverageRank, getF1, getF1, getF1, getFeatureSelection, getInstancePipe, getLabelAlphabet, getPerClassFeatureSelection, getPrecision, getPrecision, getPrecision, getRecall, getRecall, getRecall, print, print
-
-
-
-
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 classClassifier
-
induceFeatures
public void induceFeatures(InstanceList ilist, boolean withFeatureShrinkage, boolean inducePerClassFeatures)
-
-