org.knime.base.node.mine.decisiontree2.learner
Class Pruner

java.lang.Object
  extended by org.knime.base.node.mine.decisiontree2.learner.Pruner

public final class Pruner
extends Object

Class implementing pruning schemes.

Author:
Christoph Sieb, University of Konstanz

Method Summary
static void mdlPruning(DecisionTree decTree)
          Prunes a DecisionTree according to the minimum description lenght (MDL) principle.
static void trainingErrorPruning(DecisionTree decTree)
          Prunes a DecisionTree according to the training error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

mdlPruning

public static void mdlPruning(DecisionTree decTree)
Prunes a DecisionTree according to the minimum description lenght (MDL) principle.

Parameters:
decTree - the decision tree to prune

trainingErrorPruning

public static void trainingErrorPruning(DecisionTree decTree)
Prunes a DecisionTree according to the training error. I.e. if the error in the subtree according to the training data is the same as in the current node, the subtree is pruned, as nothing is gained.

Parameters:
decTree - the decision tree to prune


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.