public class C45PruneableClassifierTree extends ClassifierTree
BayesNet, Newick, NOT_DRAWABLE, TREE| Constructor and Description |
|---|
C45PruneableClassifierTree(ModelSelection toSelectLocModel,
boolean pruneTree,
float cf,
boolean raiseTree,
boolean cleanup,
boolean collapseTree)
Constructor for pruneable tree structure.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(Instances data)
Method for building a pruneable classifier tree.
|
void |
collapse()
Collapses a tree to a node if training error doesn't increase.
|
java.lang.String |
getRevision()
Returns the revision string.
|
void |
prune()
Prunes a tree using C4.5's pruning procedure.
|
assignIDs, buildTree, buildTree, classifyInstance, cleanup, distributionForInstance, getCapabilities, getLocalModel, getMembershipValues, getSons, getTrainingData, graph, graphType, isLeaf, numLeaves, numNodes, prefix, toSource, toStringpublic C45PruneableClassifierTree(ModelSelection toSelectLocModel, boolean pruneTree, float cf, boolean raiseTree, boolean cleanup, boolean collapseTree) throws java.lang.Exception
toSelectLocModel - selection method for local splitting modelpruneTree - true if the tree is to be prunedcf - the confidence factor for pruningraiseTree - cleanup - java.lang.Exception - if something goes wrongpublic void buildClassifier(Instances data) throws java.lang.Exception
buildClassifier in class ClassifierTreedata - the data for building the treejava.lang.Exception - if something goes wrongpublic final void collapse()
public void prune()
throws java.lang.Exception
java.lang.Exception - if something goes wrongpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class ClassifierTree