|
||||||||||
| 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.features.FeatureOperator
com.rapidminer.operator.features.selection.WeightGuidedSelectionOperator
public class WeightGuidedSelectionOperator
This operator uses input attribute weights to determine the order of features
added to the feature set starting with the feature set containing only the
feature with highest weight. The inner operators must provide a performance
vector to determine the fitness of the current feature set, e.g. a cross
validation of a learning scheme for a wrapper evaluation. Stops if adding the
last k features does not increase the performance or if all
features were added. The value of k can be set with the
parameter generations_without_improval.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_GENERATIONS_WITHOUT_IMPROVAL
The parameter name for "Stop after n generations without improval of the performance (-1: stops if the number of features is reached). |
static java.lang.String |
PARAMETER_USE_ABSOLUTE_WEIGHTS
The parameter name for "Indicates that the absolute values of the input weights should be used to determine the feature adding order. |
| Constructor Summary | |
|---|---|
WeightGuidedSelectionOperator(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
Population |
createInitialPopulation(ExampleSet es)
Returns an example set containing only the feature with the biggest weight. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
java.util.List<PopulationOperator> |
getPostEvaluationPopulationOperators(ExampleSet input)
Returns an empty list. |
java.util.List<PopulationOperator> |
getPreEvaluationPopulationOperators(ExampleSet input)
The operators add the feature with the next highest weight. |
boolean |
solutionGoodEnough(Population pop)
Returns true if the best individual is not better than the last generation's best individual. |
| Methods inherited from class com.rapidminer.operator.features.FeatureOperator |
|---|
apply, createCleanClone, evaluate, getCheckForMaximum, getInnerOperatorCondition, getInputClasses, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, getOutputClasses, getPopulation, getPopulationEvaluator, getRandom, setCheckForMaximum |
| 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_GENERATIONS_WITHOUT_IMPROVAL
public static final java.lang.String PARAMETER_USE_ABSOLUTE_WEIGHTS
| Constructor Detail |
|---|
public WeightGuidedSelectionOperator(OperatorDescription description)
| Method Detail |
|---|
public Population createInitialPopulation(ExampleSet es)
throws UndefinedParameterError
createInitialPopulation in class FeatureOperatorUndefinedParameterError
public java.util.List<PopulationOperator> getPreEvaluationPopulationOperators(ExampleSet input)
throws OperatorException
getPreEvaluationPopulationOperators in class FeatureOperatorOperatorException
public java.util.List<PopulationOperator> getPostEvaluationPopulationOperators(ExampleSet input)
throws OperatorException
getPostEvaluationPopulationOperators in class FeatureOperatorOperatorException
public boolean solutionGoodEnough(Population pop)
throws OperatorException
solutionGoodEnough in class FeatureOperatorOperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class FeatureOperator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||