org.knime.base.node.meta.xvalidation
Class XValidateSettings

java.lang.Object
  extended by org.knime.base.node.meta.xvalidation.XValidateSettings

public class XValidateSettings
extends Object

Simple class for managing the cross validation settings.

Author:
Thorsten Meinl, University of Konstanz

Constructor Summary
XValidateSettings()
           
 
Method Summary
 String classColumn()
          Returns the class column's name for stratified sampling.
 void classColumn(String classColumn)
          Sets the class column's name for stratified sampling.
 boolean leaveOneOut()
          Returns if leave-one-out cross validation should be performed.
 void leaveOneOut(boolean b)
          Sets if leave-one-out cross validation should be performed.
 void loadSettingsFrom(NodeSettingsRO settings)
          Loads the settings from the node settings object.
 boolean randomSampling()
          Returns if the rows of the input table should be sampled randomly.
 void randomSampling(boolean randomSampling)
          Sets if the rows of the input table should be sampled randomly.
 void saveSettingsTo(NodeSettingsWO settings)
          Writes the settings into the node settings object.
 boolean stratifiedSampling()
          Returns if the rows of the input table should be sampled stratified.
 void stratifiedSampling(boolean stratifiedSampling)
          Sets if the rows of the input table should be sampled stratified.
 short validations()
          Returns the number of validation runs that should be performed.
 void validations(short validations)
          Sets the number of validation runs that should be performed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XValidateSettings

public XValidateSettings()
Method Detail

leaveOneOut

public boolean leaveOneOut()
Returns if leave-one-out cross validation should be performed.

Returns:
true if leave-one-out should be done, false otherwise

leaveOneOut

public void leaveOneOut(boolean b)
Sets if leave-one-out cross validation should be performed.

Parameters:
b - true if leave-one-out should be done, false otherwise

saveSettingsTo

public void saveSettingsTo(NodeSettingsWO settings)
Writes the settings into the node settings object.

Parameters:
settings - a node settings object

loadSettingsFrom

public void loadSettingsFrom(NodeSettingsRO settings)
                      throws InvalidSettingsException
Loads the settings from the node settings object.

Parameters:
settings - a node settings object
Throws:
InvalidSettingsException - if some settings are missing

randomSampling

public boolean randomSampling()
Returns if the rows of the input table should be sampled randomly.

Returns:
true if the should be sampled randomly, false otherwise

randomSampling

public void randomSampling(boolean randomSampling)
Sets if the rows of the input table should be sampled randomly.

Parameters:
randomSampling - true if the should be sampled randomly, false otherwise

stratifiedSampling

public boolean stratifiedSampling()
Returns if the rows of the input table should be sampled stratified.

Returns:
true if the should be sampled stratified, false otherwise

stratifiedSampling

public void stratifiedSampling(boolean stratifiedSampling)
Sets if the rows of the input table should be sampled stratified.

Parameters:
stratifiedSampling - true if the should be sampled stratified, false otherwise

classColumn

public String classColumn()
Returns the class column's name for stratified sampling.

Returns:
the class column's name

classColumn

public void classColumn(String classColumn)
Sets the class column's name for stratified sampling.

Parameters:
classColumn - the class column's name

validations

public short validations()
Returns the number of validation runs that should be performed.

Returns:
the number of validation runs

validations

public void validations(short validations)
Sets the number of validation runs that should be performed.

Parameters:
validations - the number of validation runs


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.