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.2 $
- Author:
- Eibe Frank (eibe@cs.waikato.ac.nz)
-
PruneableClassifierTree(ModelSelection, boolean, int)
- 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) throws 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: Exception
- if something goes wrong
buildClassifier
public void buildClassifier(Instances data) throws Exception
- Method for building a pruneable classifier tree.
- Throws: Exception
- if tree can't be built successfully
- Overrides:
- buildClassifier in class ClassifierTree
prune
public void prune() throws Exception
- Prunes a tree.
- Throws: Exception
- if tree can't be pruned successfully
All Packages Class Hierarchy This Package Previous Next Index WEKA's home