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

java.lang.Object
  extended by org.knime.base.node.mine.sota.logic.SotaHelper
      extended by org.knime.base.node.mine.sota.logic.SotaFuzzyHelper

public class SotaFuzzyHelper
extends SotaHelper

Author:
Kilian Thiel, University of Konstanz

Constructor Summary
SotaFuzzyHelper(DataArray rowContainer, ExecutionMonitor exec)
          Creates new instance of SotaFuzzyHelper with given DataArray with the training data.
 
Method Summary
 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 initializeDimension()
          Returns the number of a specific type of DataCells in a RowContainers row.
 SotaTreeCell initializeTree()
          Initializes the Sota tree with specific SotaCells like SotaFuzzyCell or SotaDoubleCell.
 
Methods inherited from class org.knime.base.node.mine.sota.logic.SotaHelper
getDimension, getExec, getRowContainer, setDimension, setExec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SotaFuzzyHelper

public SotaFuzzyHelper(DataArray rowContainer,
                       ExecutionMonitor exec)
Creates new instance of SotaFuzzyHelper with given DataArray with the training data.

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

initializeDimension

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

Specified by:
initializeDimension in class SotaHelper
Returns:
the number of a specific type of DataCells

initializeTree

public 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.

Specified by:
initializeTree in class SotaHelper
Returns:
the initialized tree with a ancestor node and two children cells
Throws:
CanceledExecutionException - if execution was canceled.

adjustSotaCell

public 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.

Specified by:
adjustSotaCell in class SotaHelper
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.


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.