org.knime.base.node.meta.feature.backwardelim
Class BWElimFilterSettings

java.lang.Object
  extended by org.knime.base.node.meta.feature.backwardelim.BWElimFilterSettings

public class BWElimFilterSettings
extends Object

This class contains the settings for the feature elimination filter node.

Author:
Thorsten Meinl, University of Konstanz

Constructor Summary
BWElimFilterSettings()
           
 
Method Summary
 List<String> includedColumns(BWElimModel model)
          Returns a list with the columns that should be included in the output table.
 boolean includeTargetColumn()
          Returns if the target column should be included in the output table.
 void includeTargetColumn(boolean b)
          sets if the target column should be included in the output table.
 void loadSettings(NodeSettingsRO settings)
          Loads the settings from passed node settings object into this object.
 void loadSettingsForDialog(NodeSettingsRO settings)
          Loads the settings from passed node settings object into this object using default values if a settings is missing.
 int nrOfFeatures()
          Returns the number of included feature for the selected level.
 void nrOfFeatures(int number)
          Sets the number of included feature for the selected level.
 void saveSettings(NodeSettingsWO settings)
          Saves the settings from this object into the passed node settings object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BWElimFilterSettings

public BWElimFilterSettings()
Method Detail

includeTargetColumn

public boolean includeTargetColumn()
Returns if the target column should be included in the output table.

Returns:
true if it should be included, false otherwise

includeTargetColumn

public void includeTargetColumn(boolean b)
sets if the target column should be included in the output table.

Parameters:
b - true if it should be included, false otherwise

includedColumns

public List<String> includedColumns(BWElimModel model)
Returns a list with the columns that should be included in the output table. This list also includes the target column if it should be included.

Parameters:
model - the feature elimination model used
Returns:
a list with column names
See Also:
includeTargetColumn()

nrOfFeatures

public int nrOfFeatures()
Returns the number of included feature for the selected level. This is not necessarily the same as the size of includedColumns(BWElimModel) as the latter only contains columns that are present in the input table while the number of features is the "level" that comes out from the elimination loop.

Returns:
the number of included features

nrOfFeatures

public void nrOfFeatures(int number)
Sets the number of included feature for the selected level. This is not necessarily the same as the size of includedColumns(BWElimModel) as the latter only contains columns that are present in the input table while the number of features is the "level" that comes out from the elimination loop.

Parameters:
number - the number of included features

saveSettings

public void saveSettings(NodeSettingsWO settings)
Saves the settings from this object into the passed node settings object.

Parameters:
settings - a node settings object

loadSettings

public void loadSettings(NodeSettingsRO settings)
                  throws InvalidSettingsException
Loads the settings from passed node settings object into this object.

Parameters:
settings - a node settings object
Throws:
InvalidSettingsException - if a settings is missing

loadSettingsForDialog

public void loadSettingsForDialog(NodeSettingsRO settings)
Loads the settings from passed node settings object into this object using default values if a settings is missing.

Parameters:
settings - a node settings object


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.