|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.yale.operator.Operator
edu.udo.cs.yale.operator.OperatorChain
edu.udo.cs.yale.operator.features.FeatureOperator
edu.udo.cs.yale.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 | |
---|---|
private java.lang.String[] |
attributeNames
A descending sorted array of all attribute names. |
private int |
generationsWOImp
|
private int |
maxGenerations
|
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 edu.udo.cs.yale.operator.features.FeatureOperator |
---|
apply, evaluate, evaluate, getCheckForMaximum, getInnerOperatorCondition, getInputClasses, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, getNumberOfSteps, getOutputClasses, getRandom, setCheckForMaximum |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int generationsWOImp
private int maxGenerations
private java.lang.String[] attributeNames
Constructor Detail |
---|
public WeightGuidedSelectionOperator(OperatorDescription description)
Method Detail |
---|
public Population createInitialPopulation(ExampleSet es) throws UndefinedParameterError
createInitialPopulation
in class FeatureOperator
UndefinedParameterError
public java.util.List<PopulationOperator> getPreEvaluationPopulationOperators(ExampleSet input) throws OperatorException
getPreEvaluationPopulationOperators
in class FeatureOperator
OperatorException
public java.util.List<PopulationOperator> getPostEvaluationPopulationOperators(ExampleSet input) throws OperatorException
getPostEvaluationPopulationOperators
in class FeatureOperator
OperatorException
public boolean solutionGoodEnough(Population pop) throws OperatorException
solutionGoodEnough
in class FeatureOperator
OperatorException
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes
in class FeatureOperator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |