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

Class weka.classifiers.j48.C45PruneableDecList

java.lang.Object
   |
   +----weka.classifiers.j48.ClassifierDecList
           |
           +----weka.classifiers.j48.C45PruneableDecList

public class C45PruneableDecList
extends ClassifierDecList
Class for handling a partial tree structure pruned using C4.5's pruning heuristic.

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

Constructor Index

 o C45PruneableDecList(ModelSelection, double, int)
Constructor for pruneable tree structure.

Method Index

 o buildRule(Instances)
Method for building a pruned partial tree.
 o chooseIndex()
Method for choosing a subset to expand.
 o chooseLastIndex()
Choose last index (ie.
 o getEstimatedErrorsForLeaf()
Computes estimated errors for leaf.

Constructors

 o C45PruneableDecList
 public C45PruneableDecList(ModelSelection toSelectLocModel,
                            double cf,
                            int minNum) throws Exception
Constructor for pruneable tree structure. Stores reference to associated training data at each node.

Parameters:
toSelectLocModel - selection method for local splitting model
cf - the confidence factor for pruning
minNum - the minimum number of objects in a leaf
Throws: Exception
if something goes wrong

Methods

 o buildRule
 public void buildRule(Instances data) throws Exception
Method for building a pruned partial tree.

Throws: Exception
if something goes wrong
 o chooseIndex
 public final int chooseIndex()
Method for choosing a subset to expand.

Overrides:
chooseIndex in class ClassifierDecList
 o chooseLastIndex
 public final int chooseLastIndex()
Choose last index (ie. choose rule).

Overrides:
chooseLastIndex in class ClassifierDecList
 o getEstimatedErrorsForLeaf
 public double getEstimatedErrorsForLeaf()
Computes estimated errors for leaf.


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