com.rapidminer.operator.meta
Class QuadraticParameterOptimizationOperator

java.lang.Object
  extended by com.rapidminer.operator.Operator
      extended by com.rapidminer.operator.OperatorChain
          extended by com.rapidminer.operator.meta.ParameterIteratingOperatorChain
              extended by com.rapidminer.operator.meta.ParameterOptimizationOperator
                  extended by com.rapidminer.operator.meta.GridSearchParameterOptimizationOperator
                      extended by com.rapidminer.operator.meta.QuadraticParameterOptimizationOperator
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ParameterHandler, LoggingHandler

public class QuadraticParameterOptimizationOperator
extends GridSearchParameterOptimizationOperator

This operator finds the optimal values for a set of parameters using a quadratic interaction model. The parameter parameters is a list of key value pairs where the keys are of the form OperatorName.parameter_name and the value is a comma separated list of values (as for the GridParameterOptimization operator).
The operator returns an optimal ParameterSet which can as well be written to a file with a ParameterSetLoader. This parameter set can be read in another process using an ParameterSetLoader.
The file format of the parameter set file is straightforward and can also easily be generated by external applications. Each line is of the form

operator_name.parameter_name = value
.

Author:
Stefan Rueping, Helge Homburg 08:57:26 ingomierswa Exp $

Field Summary
static java.lang.String PARAMETER_IF_EXCEEDS_RANGE
          The parameter name for "What to do if range is exceeded.
static java.lang.String PARAMETER_IF_EXCEEDS_REGION
          The parameter name for "What to do if range is exceeded.
 
Fields inherited from class com.rapidminer.operator.meta.GridSearchParameterOptimizationOperator
currentIndex, numberOfCombinations, numberOfParameters, operators, parameters, values
 
Fields inherited from class com.rapidminer.operator.meta.ParameterIteratingOperatorChain
PARAMETER_PARAMETERS, PARAMETER_VALUES, VALUE_MODE_CONTINUOUS, VALUE_MODE_DISCRETE
 
Constructor Summary
QuadraticParameterOptimizationOperator(OperatorDescription description)
           
 
Method Summary
 IOObject[] apply()
          Applies all inner operators.
 double getCurrentBestPerformance()
           
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 
Methods inherited from class com.rapidminer.operator.meta.GridSearchParameterOptimizationOperator
getParametersToOptimize, getParameterValueMode
 
Methods inherited from class com.rapidminer.operator.meta.ParameterOptimizationOperator
getInnerOperatorCondition, getInputClasses, getOutputClasses, getPerformance, getPerformance
 
Methods inherited from class com.rapidminer.operator.meta.ParameterIteratingOperatorChain
getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, parseParameterValues, shouldAddNonConsumedInput
 
Methods inherited from class com.rapidminer.operator.OperatorChain
addAddListener, addOperator, addOperator, checkDeprecations, checkIO, checkNumberOfInnerOperators, checkProperties, clearErrorList, cloneOperator, createExperimentTree, createProcessTree, getAllInnerOperators, getIndexOfOperator, getInnerOperatorForName, getInnerOperatorsXML, getNumberOfAllOperators, getNumberOfOperators, getOperator, getOperatorFromAll, getOperators, performAdditionalChecks, processFinished, processStarts, registerOperator, removeAddListener, removeOperator, shouldReturnInnerOutput, unregisterOperator
 
Methods inherited from class com.rapidminer.operator.Operator
addError, addValue, addWarning, apply, checkForStop, createExperimentTree, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, getAddOnlyAdditionalOutput, getApplyCount, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getEncoding, getErrorList, getExperiment, getInput, getInput, getInput, getInputDescription, getIOContainerForInApplyLoopBreakpoint, getIODescription, getLog, getName, getOperatorClassName, getOperatorDescription, getParameter, getParameterAsBoolean, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsString, getParameterList, getParameters, getParameterType, getParent, getProcess, getStartTime, getStatus, getUserDescription, getValue, getValues, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isEnabled, isExpanded, isParallel, isParameterSet, log, logError, logNote, logWarning, register, remove, rename, resume, setApplyCount, setBreakpoint, setEnabled, setExpanded, setInput, setListParameter, setOperatorParameters, setParameter, setParameters, setParent, setUserDescription, toString, writeXML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_IF_EXCEEDS_REGION

public static final java.lang.String PARAMETER_IF_EXCEEDS_REGION
The parameter name for "What to do if range is exceeded."

See Also:
Constant Field Values

PARAMETER_IF_EXCEEDS_RANGE

public static final java.lang.String PARAMETER_IF_EXCEEDS_RANGE
The parameter name for "What to do if range is exceeded."

See Also:
Constant Field Values
Constructor Detail

QuadraticParameterOptimizationOperator

public QuadraticParameterOptimizationOperator(OperatorDescription description)
Method Detail

getCurrentBestPerformance

public double getCurrentBestPerformance()
Overrides:
getCurrentBestPerformance in class GridSearchParameterOptimizationOperator

apply

public IOObject[] apply()
                 throws OperatorException
Description copied from class: OperatorChain
Applies all inner operators. The input to this operator becomes the input of the first inner operator. The latter's output is passed to the second inner operator and so on. Note to subclassers: If subclasses (for example wrappers) want to make use of this method remember to call exactly this method (super.apply()) and do not call super.apply(IOContainer) erroneously which will result in an infinite loop.

Overrides:
apply in class GridSearchParameterOptimizationOperator
Returns:
the last inner operator's output or the input itself if the chain is empty.
Throws:
OperatorException

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed.

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class ParameterIteratingOperatorChain


Copyright © 2001-2009 by Rapid-I