|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.features.IndividualOperator
edu.udo.cs.yale.operator.features.construction.AttributeGenerator
public class AttributeGenerator
This PopulationOperator generates new attributes in an individual's example table. Given a generation probability pGenerate
and the maximal number of new attributes it generates on average pGenerate * numberOfNewAttributes new attributes using generators from the list generatorList
| Field Summary | |
|---|---|
private java.util.List<FeatureGenerator> |
generatorList
A list of applicable generators. |
private int |
numberOfNewAttributes
Maximal number of newly generated attributes. |
private double |
pGenerate
Probability to generate a new attribute. |
private RandomGenerator |
random
|
private int |
totalMaxNumberOfAttributes
The total maximum number of new attributes. |
| Constructor Summary | |
|---|---|
AttributeGenerator(double pGenerate,
int numberOfNewAttributes,
int totalMaxNumberOfAttributes,
java.util.List<FeatureGenerator> generatorList,
RandomGenerator random)
Creates a new AttributeGenerator with given parameters. |
|
| Method Summary | |
|---|---|
java.util.List<Individual> |
operate(Individual individual)
Determines the applicable generators and generates up to numberOfNewAttributes new attributes. |
| Methods inherited from class edu.udo.cs.yale.operator.features.IndividualOperator |
|---|
operate, performOperation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private double pGenerate
private int numberOfNewAttributes
private int totalMaxNumberOfAttributes
private java.util.List<FeatureGenerator> generatorList
private RandomGenerator random
| Constructor Detail |
|---|
public AttributeGenerator(double pGenerate,
int numberOfNewAttributes,
int totalMaxNumberOfAttributes,
java.util.List<FeatureGenerator> generatorList,
RandomGenerator random)
| Method Detail |
|---|
public java.util.List<Individual> operate(Individual individual)
throws java.lang.Exception
operate in class IndividualOperatorjava.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||