|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.trees.j48.ClassifierTree
weka.classifiers.trees.j48.PruneableClassifierTree
public class PruneableClassifierTree
Class for handling a tree structure that can be pruned using a pruning set.
| Field Summary |
|---|
| Fields inherited from interface weka.core.Drawable |
|---|
BayesNet, Newick, NOT_DRAWABLE, TREE |
| Constructor Summary | |
|---|---|
PruneableClassifierTree(ModelSelection toSelectLocModel,
boolean pruneTree,
int num,
boolean cleanup,
int seed)
Constructor for pruneable tree structure. |
|
| Method Summary | |
|---|---|
void |
buildClassifier(Instances data)
Method for building a pruneable classifier tree. |
Capabilities |
getCapabilities()
Returns default capabilities of the classifier tree. |
java.lang.String |
getRevision()
Returns the revision string. |
void |
prune()
Prunes a tree. |
| Methods inherited from class weka.classifiers.trees.j48.ClassifierTree |
|---|
assignIDs, buildTree, buildTree, classifyInstance, cleanup, distributionForInstance, graph, graphType, numLeaves, numNodes, prefix, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PruneableClassifierTree(ModelSelection toSelectLocModel,
boolean pruneTree,
int num,
boolean cleanup,
int seed)
throws java.lang.Exception
toSelectLocModel - selection method for local splitting modelpruneTree - true if the tree is to be prunednum - number of subsets of equal sizecleanup - seed - the seed value to use
java.lang.Exception - if something goes wrong| Method Detail |
|---|
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ClassifierTreeCapabilities
public void buildClassifier(Instances data)
throws java.lang.Exception
buildClassifier in class ClassifierTreedata - the data to build the tree from
java.lang.Exception - if tree can't be built successfully
public void prune()
throws java.lang.Exception
java.lang.Exception - if tree can't be pruned successfullypublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class ClassifierTree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||