All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.j48.C45PruneableClassifierTree

java.lang.Object
   |
   +----weka.classifiers.j48.ClassifierTree
           |
           +----weka.classifiers.j48.C45PruneableClassifierTree

public class C45PruneableClassifierTree
extends ClassifierTree
Class for handling a tree structure that can be pruned using C4.5 procedures.

Version:
$Revision: 1.3 $
Author:
Eibe Frank (eibe@cs.waikato.ac.nz)

Constructor Index

 o C45PruneableClassifierTree(ModelSelection, boolean, float, boolean)
Constructor for pruneable tree structure.

Method Index

 o buildClassifier(Instances)
Method for building a pruneable classifier tree.
 o collapse()
Collapses a tree to a node if training error doesn't increase.
 o prune()
Prunes a tree using C4.5's pruning procedure.

Constructors

 o C45PruneableClassifierTree
 public C45PruneableClassifierTree(ModelSelection toSelectLocModel,
                                   boolean pruneTree,
                                   float cf,
                                   boolean raiseTree) 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
cf - the confidence factor for pruning
Throws: Exception
if something goes wrong

Methods

 o buildClassifier
 public void buildClassifier(Instances data) throws Exception
Method for building a pruneable classifier tree.

Throws: Exception
if something goes wrong
Overrides:
buildClassifier in class ClassifierTree
 o collapse
 public final void collapse()
Collapses a tree to a node if training error doesn't increase.

 o prune
 public void prune() throws Exception
Prunes a tree using C4.5's pruning procedure.

Throws: Exception
if something goes wrong

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home