|
||||||||||
| 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.ValueSubgroupIteration
public class ValueSubgroupIteration
In each iteration step, this meta operator applies its inner operators to a subset of the input example set. The subsets represent subgroups which are defined by the values of the specified attributes. If an attribute is specified which has 'male' or 'female' as possible values the first iteration subset will consist of all males, the second of all females, respectively. Please note that no attribute value combinations are supported and hence only subgroups defined by exactly one attribute are considered at a time.
A subset is build (and an inner operator application is executed) for each
possible attribute value of the specified attributes if all is
selected for the values parameter. If above p is selected,
a subset is only build for that values which exhibit an occurance ratio of at
least p. This may be helpful, if only large subgroups should be considered.
The parameter filter_attribute specifies, if the subgroup
defining attribute should be filtered from the subsets.
The parameter apply_on_complete_set specifies, if the inner
operators should be applied on the completed example set in addition to the
subset iterations.
The current value of the loop can be accessed with the specified macro name.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_ITERATION_MACRO_NAME
|
static java.lang.String |
PARAMETER_APPLY_ON_COMPLETE_SET
|
static java.lang.String |
PARAMETER_ATTRIBUTES
|
static java.lang.String |
PARAMETER_FILTER_ATTRIBUTE
|
static java.lang.String |
PARAMETER_ITERATION_MACRO
|
static java.lang.String |
PARAMETER_P
|
static java.lang.String |
PARAMETER_VALUES
|
static int |
VALUE_OPTION_ABOVE_P
|
static int |
VALUE_OPTION_ALL
|
static java.lang.String[] |
VALUE_OPTIONS
|
| Constructor Summary | |
|---|---|
ValueSubgroupIteration(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
IOObject[] |
apply()
Applies all inner operators. |
InnerOperatorCondition |
getInnerOperatorCondition()
All inner operators must be able to handle an example set. |
java.lang.Class<?>[] |
getInputClasses()
Returns the classes that are needed as input. |
int |
getMaxNumberOfInnerOperators()
Returns the maximum number of innner operators. |
int |
getMinNumberOfInnerOperators()
Returns the minimum number of innner operators. |
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. |
| 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_ATTRIBUTES
public static final java.lang.String PARAMETER_VALUES
public static final java.lang.String[] VALUE_OPTIONS
public static final int VALUE_OPTION_ALL
public static final int VALUE_OPTION_ABOVE_P
public static final java.lang.String PARAMETER_P
public static final java.lang.String PARAMETER_FILTER_ATTRIBUTE
public static final java.lang.String PARAMETER_APPLY_ON_COMPLETE_SET
public static final java.lang.String PARAMETER_ITERATION_MACRO
public static final java.lang.String DEFAULT_ITERATION_MACRO_NAME
| Constructor Detail |
|---|
public ValueSubgroupIteration(OperatorDescription description)
| Method Detail |
|---|
public IOObject[] apply()
throws OperatorException
OperatorChain
apply in class OperatorChainOperatorExceptionpublic InnerOperatorCondition getInnerOperatorCondition()
getInnerOperatorCondition in class OperatorChainpublic int getMaxNumberOfInnerOperators()
getMaxNumberOfInnerOperators in class OperatorChainpublic int getMinNumberOfInnerOperators()
getMinNumberOfInnerOperators in class OperatorChainpublic 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 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.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||