org.knime.base.node.mine.sota.logic
Class SotaHelper

java.lang.Object
  extended by org.knime.base.node.mine.sota.logic.SotaHelper
Direct Known Subclasses:
SotaFuzzyHelper, SotaNumberHelper

public abstract class SotaHelper
extends Object

The SotaHelper class helps the SotaManager to manage the tree. SotaHelper has to be implemented for helping the SotaManager with Fuzzy or Number data.

Author:
Kilian Thiel, University of Konstanz

Constructor Summary
SotaHelper(DataArray rowContainer, ExecutionMonitor exec)
          Constructor of SotaHelper, which sets the given rowContainer with the training data.
 
Method Summary
abstract  void adjustSotaCell(SotaTreeCell cell, DataRow row, double learningrate, String cellClass)
          Adjusts the given SotaTreeCell related to the given DataRow and learningrate and assigns the given class.
 int getDimension()
          Returns the dimension.
protected  ExecutionMonitor getExec()
           
 DataArray getRowContainer()
          Returns the DataArray with the training data.
abstract  int initializeDimension()
          Returns the number of a specific type of DataCells in a RowContainers row.
abstract  SotaTreeCell initializeTree()
          Initializes the Sota tree with specific SotaCells like SotaFuzzyCell or SotaDoubleCell.
protected  void setDimension(int dimension)
          Sets the given dimension.
protected  void setExec(ExecutionMonitor exec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SotaHelper

public SotaHelper(DataArray rowContainer,
                  ExecutionMonitor exec)
Constructor of SotaHelper, which sets the given rowContainer with the training data.

Parameters:
rowContainer - DataArray with the training data
exec - the ExecutionMonitor to set.
Method Detail

getRowContainer

public DataArray getRowContainer()
Returns the DataArray with the training data.

Returns:
the DataArray with the training data

getDimension

public int getDimension()
Returns the dimension.

Returns:
the dimension

setDimension

protected void setDimension(int dimension)
Sets the given dimension.

Parameters:
dimension - dimension to set

initializeDimension

public abstract int initializeDimension()
Returns the number of a specific type of DataCells in a RowContainers row. What specific type of DataCells can be specified in the concrete implementation (i.e. Fuzzy or Number).

Returns:
the number of a specific type of DataCells

initializeTree

public abstract SotaTreeCell initializeTree()
                                     throws CanceledExecutionException
Initializes the Sota tree with specific SotaCells like SotaFuzzyCell or SotaDoubleCell. Which kind of SotaCell is used is specified in the concrete implementation.

Returns:
the initialized tree with a ancestor node and two children cells
Throws:
CanceledExecutionException - if execution was canceled.

adjustSotaCell

public abstract void adjustSotaCell(SotaTreeCell cell,
                                    DataRow row,
                                    double learningrate,
                                    String cellClass)
Adjusts the given SotaTreeCell related to the given DataRow and learningrate and assigns the given class.

Parameters:
cell - cell to adjust
row - row to adjust the cell with
learningrate - learningrate to adjust the cell with
cellClass - The class to assign to the cell.

getExec

protected ExecutionMonitor getExec()
Returns:
the ExecutionMonitor

setExec

protected void setExec(ExecutionMonitor exec)
Parameters:
exec - the ExecutionMonitor to set


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.