Package cc.mallet.classify
Class C45
- java.lang.Object
-
- cc.mallet.classify.Classifier
-
- cc.mallet.classify.C45
-
- All Implemented Interfaces:
Boostable
,AlphabetCarrying
,java.io.Serializable
public class C45 extends Classifier implements Boostable, java.io.Serializable
A C4.5 Decision Tree classifier.- Author:
- Gary Huang ghuang@cs.umass.edu
- See Also:
C45Trainer
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
C45.Node
-
Field Summary
-
Fields inherited from class cc.mallet.classify.Classifier
instancePipe
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Classification
classify(Instance instance)
C45.Node
getRoot()
int
getSize()
void
print()
Prints the treevoid
prune()
Prune the tree using minimum description length-
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
-
-
-
-
Method Detail
-
getRoot
public C45.Node getRoot()
-
classify
public Classification classify(Instance instance)
- Specified by:
classify
in classClassifier
-
prune
public void prune()
Prune the tree using minimum description length
-
getSize
public int getSize()
- Returns:
- the total number of nodes in this tree
-
print
public void print()
Prints the tree- Overrides:
print
in classClassifier
-
-