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)

Constructor Index

 o PruneableClassifierTree(ModelSelection, boolean, int, boolean)
Constructor for pruneable tree structure.

Method Index

 o buildClassifier(Instances)
Method for building a pruneable classifier tree.
 o prune()
Prunes a tree.

Constructor Detail

 o 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

Method Detail

 o 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
 o 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