|
|||||||||
| 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.BruteForceSelection
public class BruteForceSelection
This feature selection operator selects the best attribute set by trying all possible combinations of attribute selections. It returns the example set containing the subset of attributes which produced the best performance. As this operator works on the powerset of the attributes set it has exponential runtime.
| Constructor Summary | |
|---|---|
BruteForceSelection(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
private void |
addAll(Population pop,
AttributeWeightedExampleSet es,
int startIndex)
Recursive method to add all attribute combinations to the population. |
Population |
createInitialPopulation(ExampleSet es)
Create an initial population. |
java.util.List<PopulationOperator> |
getPostEvaluationPopulationOperators(ExampleSet input)
Returns an empty list if the parameter debug_output is set to false. |
java.util.List<PopulationOperator> |
getPreEvaluationPopulationOperators(ExampleSet input)
Does nothing. |
boolean |
solutionGoodEnough(Population pop)
Stops immediately. |
| Methods inherited from class edu.udo.cs.yale.operator.features.FeatureOperator |
|---|
apply, evaluate, evaluate, getCheckForMaximum, getInnerOperatorCondition, getInputClasses, getMaxNumberOfInnerOperators, getMinNumberOfInnerOperators, getNumberOfSteps, getOutputClasses, getParameterTypes, getRandom, setCheckForMaximum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BruteForceSelection(OperatorDescription description)
| Method Detail |
|---|
public Population createInitialPopulation(ExampleSet es)
FeatureOperator
createInitialPopulation in class FeatureOperator
private void addAll(Population pop,
AttributeWeightedExampleSet es,
int startIndex)
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 FeatureOperatorOperatorExceptionpublic boolean solutionGoodEnough(Population pop)
solutionGoodEnough in class FeatureOperator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||