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

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

public class Partitioner
extends Object

Partitions a table according to a given split.

Author:
Christoph Sieb, University of Konstanz

Constructor Summary
Partitioner(InMemoryTable table, Split split, double minNumExamples)
          Partitions the data table according to the given split.
 
Method Summary
 boolean couldBeUsefulPartitioned()
          Whether a useful partition could be created.
 InMemoryTable[] getPartitionTables()
          Return the partition tables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Partitioner

public Partitioner(InMemoryTable table,
                   Split split,
                   double minNumExamples)
Partitions the data table according to the given split.

Parameters:
table - the data table to partition
split - the split according to which the table is split
minNumExamples - a partitioning is only created if there are at least two partitions with at least minNumExamples examples per partition
Method Detail

getPartitionTables

public InMemoryTable[] getPartitionTables()
                                   throws IllegalAccessException
Return the partition tables.

Returns:
the partitioned tables.
Throws:
IllegalAccessException - thrown if no useful partitioning could be created, i.e. this is the case if all records fall in one partition

couldBeUsefulPartitioned

public boolean couldBeUsefulPartitioned()
Whether a useful partition could be created. More precisely, there must exist at least two partitions that contain at least a given number of examples (defined in the constructor).

Returns:
if true a useful partition could be created and can be get via "getPartitionedLists"


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.