net.sf.myra.antree
Class ErrorBasedPruner

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

public class ErrorBasedPruner
extends java.lang.Object
implements Pruner

Version:
$Revision: 2320 $ $Date:: 2011-01-25 13:06:10#$
Author:
Fernando Esteban Barril Otero

Constructor Summary
ErrorBasedPruner()
           
 
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

ErrorBasedPruner

public ErrorBasedPruner()
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.