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

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

public class InMemoryTableCreator
extends Object

Creates an in memory representation of the given BufferedDataTable. The table only includes valid attributes (nominal, numeric and the class attribute).

Author:
Christoph Sieb, University of Konstanz

Constructor Summary
InMemoryTableCreator(BufferedDataTable table, int classColumnIndex, double minNumberRowsPerNode)
          Creates a creator from the given table and the specified class index.
 
Method Summary
 InMemoryTable createInMemoryTable(ExecutionContext exec)
          Creates the InMemoryTable.
 int getRemovedRowsDueToMissingClassValue()
          Returns the number of rows removed during table creation due to missing class values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryTableCreator

public InMemoryTableCreator(BufferedDataTable table,
                            int classColumnIndex,
                            double minNumberRowsPerNode)
Creates a creator from the given table and the specified class index.

Parameters:
table - the data table from which to create the attribute lists
classColumnIndex - the class column index
minNumberRowsPerNode - the minimum number of nodes per leaf; used to determine whether this tables distribution of class values is pure enough
Method Detail

createInMemoryTable

public InMemoryTable createInMemoryTable(ExecutionContext exec)
                                  throws CanceledExecutionException
Creates the InMemoryTable.

Parameters:
exec - the ExecutionContext to report the progress to
Returns:
the InMemoryTable
Throws:
CanceledExecutionException - thrown if the creation process is canceled by the user

getRemovedRowsDueToMissingClassValue

public int getRemovedRowsDueToMissingClassValue()
Returns the number of rows removed during table creation due to missing class values.

Returns:
the number of rows removed during table creation due to missing class values


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.