net.sf.myra.antree
Class AccuracyPruner

java.lang.Object
  extended by net.sf.myra.antree.AccuracyPruner
All Implemented Interfaces:
Pruner

public class AccuracyPruner
extends java.lang.Object
implements Pruner

Version:
$Revision: 2329 $ $Date:: 2011-08-02 09:57:44#$
Author:
Fernando Esteban Barril Otero

Constructor Summary
AccuracyPruner()
           
 
Method Summary
 Tree prune(Tree tree, net.sf.myra.datamining.data.Dataset dataset)
          Prunes the tree based on the reduced-error pruning procedure of the C4.5 algorithm.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccuracyPruner

public AccuracyPruner()
Method Detail

prune

public Tree prune(Tree tree,
                  net.sf.myra.datamining.data.Dataset dataset)
Prunes the tree based on the reduced-error pruning procedure of the C4.5 algorithm. The statistical test applied assume that the data set used in the pruning is the training data set.

Specified by:
prune in interface Pruner
Parameters:
tree - the tree to be pruned.
dataset - the data set used during the pruning (this method assumes that it is the training set).
Returns:
the pruned tree.


Copyright © 2013. All Rights Reserved.