|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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.FeatureSelectionOperator
edu.udo.cs.yale.operator.features.construction.GeneratingForwardSelection
public class GeneratingForwardSelection
This operator is a kind of nested forward selection and thus is (in contrast to a genetic algorithm) a directed search.
| Field Summary | |
|---|---|
private Individual |
bestIndividual
|
private int |
newAttributeStart
|
private Attribute[] |
originalAttributes
List of AttributeReferences. |
private int |
turn
|
private java.util.List<FeatureGenerator> |
useGenerators
|
| Fields inherited from class edu.udo.cs.yale.operator.features.selection.FeatureSelectionOperator |
|---|
BACKWARD_ELIMINATION, FORWARD_SELECTION |
| Constructor Summary | |
|---|---|
GeneratingForwardSelection(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
IOObject[] |
apply()
Applies the feature operator: collects the pre- and postevaluation operators create an initial population evaluate the initial population loop as long as solution is not good enough apply all pre evaluation operators evaluate the population update the population's best individual apply all post evaluation operators return all generation's best individual |
Population |
createInitialPopulation(ExampleSet es)
May es have n features. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
java.util.List<PopulationOperator> |
getPreEvaluationPopulationOperators(ExampleSet input)
The operators performs two steps: forward selection/backward elimination kick out all but the keep_best individuals remove redundant individuals |
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.selection.FeatureSelectionOperator |
|---|
getPostEvaluationPopulationOperators |
| Methods inherited from class edu.udo.cs.yale.operator.features.FeatureOperator |
|---|
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 Attribute[] originalAttributes
private Individual bestIndividual
private java.util.List<FeatureGenerator> useGenerators
private int newAttributeStart
private int turn
| Constructor Detail |
|---|
public GeneratingForwardSelection(OperatorDescription description)
| Method Detail |
|---|
public IOObject[] apply()
throws OperatorException
FeatureOperator
apply in class FeatureSelectionOperatorOperatorExceptionpublic Population createInitialPopulation(ExampleSet es)
createInitialPopulation in class FeatureSelectionOperator
public java.util.List<PopulationOperator> getPreEvaluationPopulationOperators(ExampleSet input)
throws OperatorException
getPreEvaluationPopulationOperators in class FeatureSelectionOperatorOperatorException
public boolean solutionGoodEnough(Population pop)
throws OperatorException
FeatureSelectionOperator
solutionGoodEnough in class FeatureSelectionOperatorOperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in class FeatureSelectionOperator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||