All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object | +----weka.attributeSelection.ASSearch | +----weka.attributeSelection.GeneticSearch
For more information see:
David E. Goldberg (1989). Genetic algorithms in search, optimization and machine learning. Addison-Wesley.
Valid options are:
-Z
-G
-C
-M
-R
(default = number of generations).
-S
-Z
-G
-C
-M
-R
(default = number of generations).
-S
Sets the size of the population. (default = 20).
Sets the number of generations to perform.
(default = 5).
Sets the probability that crossover will occur.
(default = .6).
Sets the probability that a feature will be toggled on/off.
Sets how frequently reports will be generated. Eg, setting the value
to 5 will generate a report every 5th generation.
Sets the seed for random number generation.
GeneticSearch
public GeneticSearch()
listOptions
public Enumeration listOptions()
setOptions
public void setOptions(String options[]) throws Exception
getOptions
Sets the size of the population. (default = 20).
Sets the number of generations to perform.
(default = 5).
Sets the probability that crossover will occur.
(default = .6).
Sets the probability that a feature will be toggled on/off.
Sets how frequently reports will be generated. Eg, setting the value
to 5 will generate a report every 5th generation.
Sets the seed for random number generation.
public String[] getOptions()
setStartSet
public void setStartSet(String startSet) throws Exception
getStartSet
public String getStartSet()
setSeed
public void setSeed(int s)
getSeed
public int getSeed()
setReportFrequency
public void setReportFrequency(int f)
getReportFrequency
public int getReportFrequency()
setMutationProb
public void setMutationProb(double m)
getMutationProb
public double getMutationProb()
setCrossoverProb
public void setCrossoverProb(double c)
getCrossoverProb
public double getCrossoverProb()
setMaxGenerations
public void setMaxGenerations(int m)
getMaxGenerations
public int getMaxGenerations()
setPopulationSize
public void setPopulationSize(int p)
getPopulationSize
public int getPopulationSize()
toString
public String toString()
search
public int[] search(ASEvaluation ASEval,
Instances data) throws Exception
All Packages Class Hierarchy This Package Previous Next Index WEKA's home