All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.classifiers.j48.PruneableClassifierTree
java.lang.Object
|
+----weka.classifiers.j48.ClassifierTree
|
+----weka.classifiers.j48.PruneableClassifierTree
- public class PruneableClassifierTree
- extends ClassifierTree
Class for handling a tree structure that can
be pruned using a pruning set.
- Version:
- $Revision: 1.5 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
PruneableClassifierTree(ModelSelection, boolean, int, boolean)
- Constructor for pruneable tree structure.
buildClassifier(Instances)
- Method for building a pruneable classifier tree.
prune()
- Prunes a tree.
PruneableClassifierTree
public PruneableClassifierTree(ModelSelection toSelectLocModel,
boolean pruneTree,
int num,
boolean cleanup) throws java.lang.Exception
Constructor for pruneable tree structure. Stores reference
to associated training data at each node.
- Parameters:
toSelectLocModel
- selection method for local splitting model
pruneTree
- true if the tree is to be pruned
num
- number of subsets of equal size
- Throws:
- java.lang.Exception - if something goes wrong
buildClassifier
public void buildClassifier(Instances data) throws java.lang.Exception
Method for building a pruneable classifier tree.
- Throws:
- java.lang.Exception - if tree can't be built successfully
- Overrides:
- buildClassifier in class ClassifierTree
prune
public void prune() throws java.lang.Exception
Prunes a tree.
- Throws:
- java.lang.Exception - if tree can't be pruned successfully
All Packages Class Hierarchy This Package Previous Next Index WEKA's home