|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.OperatorChain
com.rapidminer.operator.meta.ParameterIteratingOperatorChain
com.rapidminer.operator.meta.ParameterIteration
public class ParameterIteration
In contrast to the GridSearchParameterOptimizationOperator operator this
operators simply uses the defined parameters and perform the inner operators
for all possible combinations. This can be especially usefull for plotting
or logging purposes and sometimes also for simply configuring the parameters for
the inner operators as a sort of meta step (e.g. learning curve generation).
This operator iterates through a set of parameters by using all possible
parameter combinations. The parameter parameters is a list of key value pairs
where the keys are of the form operator_name.parameter_name and
the value is either a comma separated list of values (e.g. 10,15,20,25) or an
interval definition in the format [start;end;stepsize] (e.g. [10;25;5]). Additionally,
the format [start;end;steps;scale] is allowed.
Please note that this operator has two modes: synchronized and non-synchronized. In the latter, all parameter combinations are generated and the inner operators are applied for each combination. In the synchronized mode, no combinations are generated but the set of all pairs of the increasing number of parameters are used. For the iteration over a single parameter there is no difference between both modes. Please note that the number of parameter possibilities must be the same for all parameters in the synchronized mode.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_KEEP_OUTPUT
The parameter name for "Keep the output of the last operator in the operator chain" |
static java.lang.String |
PARAMETER_PARAMETERS
The parameter name for "A list of parameters to optimize" |
static java.lang.String |
PARAMETER_SYNCHRONIZE
The parameter name for "Synchronize parameter iteration" |
| Fields inherited from class com.rapidminer.operator.meta.ParameterIteratingOperatorChain |
|---|
PARAMETER_VALUES, VALUE_MODE_CONTINUOUS, VALUE_MODE_DISCRETE |
| Constructor Summary | |
|---|---|
ParameterIteration(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
IOObject[] |
apply()
Applies all inner operators. |
InnerOperatorCondition |
getInnerOperatorCondition()
Returns a simple chain condition. |
java.lang.Class<?>[] |
getInputClasses()
Returns the classes that are needed as input. |
java.lang.Class<?>[] |
getOutputClasses()
Returns the classes that are guaranteed to be returned by apply() as additional output. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
int |
getParameterValueMode()
Has to return one of the predefined modes which indicate whether the operator takes discrete values or intervals as basis for optimization. |
boolean |
shouldAddNonConsumedInput()
|
boolean |
shouldReturnInnerOutput()
Indicates if inner output should be delivered by this operator chain. |
| Methods inherited from class com.rapidminer.operator.meta.ParameterIteratingOperatorChain |
|---|
getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, parseParameterValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_PARAMETERS
public static final java.lang.String PARAMETER_SYNCHRONIZE
public static final java.lang.String PARAMETER_KEEP_OUTPUT
| Constructor Detail |
|---|
public ParameterIteration(OperatorDescription description)
| Method Detail |
|---|
public int getParameterValueMode()
ParameterIteratingOperatorChain
getParameterValueMode in class ParameterIteratingOperatorChain
public IOObject[] apply()
throws OperatorException
OperatorChain
apply in class OperatorChainOperatorExceptionpublic java.lang.Class<?>[] getInputClasses()
OperatorOperator.getOutputClasses() and
Operator.apply() if this is necessary. This default behavior can be
changed by overriding Operator.getInputDescription(Class). Subclasses
which implement this method should not make use of parameters since this
method is invoked by getParameterTypes(). Therefore, parameters are not
fully available at this point of time and this might lead to exceptions.
Please use InputDescriptions instead.
getInputClasses in class Operatorpublic java.lang.Class<?>[] getOutputClasses()
OperatorReturns the classes that are guaranteed to be returned by
apply() as additional output. Please note that input objects
which should not be consumed must also be defined by this method (e.g.
an example set which is changed but not consumed in the case of a preprocessing
operator must be defined in both, the methods Operator.getInputClasses() and
Operator.getOutputClasses()). The default behavior for input consumation
is defined by Operator.getInputDescription(Class) and can be changed by
overwriting this method. Objects which are not consumed (defined by changing
the implementation in Operator.getInputDescription(Class)) must not be
defined as additional output in this method.
May deliver null or an empy array (no additional output is produced or guaranteed). Must return the class array of delivered output objects otherwise.
getOutputClasses in class Operatorpublic InnerOperatorCondition getInnerOperatorCondition()
getInnerOperatorCondition in class OperatorChainpublic boolean shouldReturnInnerOutput()
OperatorChainOperator.getDeliveredOutputClasses() but of
OperatorChain.getAllOutputClasses(Class[]).
shouldReturnInnerOutput in class OperatorChainpublic boolean shouldAddNonConsumedInput()
shouldAddNonConsumedInput in class ParameterIteratingOperatorChainpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class ParameterIteratingOperatorChain
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||