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()
crossoverProbTipText()
getCrossoverProb()
getMaxGenerations()
getMutationProb()
getOptions()
getPopulationSize()
getReportFrequency()
getSeed()
getStartSet()
globalInfo()
listOptions()
maxGenerationsTipText()
mutationProbTipText()
populationSizeTipText()
reportFrequencyTipText()
search(ASEvaluation, Instances)
seedTipText()
setCrossoverProb(double)
setMaxGenerations(int)
setMutationProb(double)
setOptions(String[])
setPopulationSize(int)
setReportFrequency(int)
setSeed(int)
setStartSet(String)
startSetTipText()
toString()
GeneticSearch
public GeneticSearch()
listOptions
public Enumeration listOptions()
setOptions
public void setOptions(String options[]) throws Exception
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.
getOptions
public String[] getOptions()
startSetTipText
public String startSetTipText()
setStartSet
public void setStartSet(String startSet) throws Exception
getStartSet
public String getStartSet()
seedTipText
public String seedTipText()
setSeed
public void setSeed(int s)
getSeed
public int getSeed()
reportFrequencyTipText
public String reportFrequencyTipText()
setReportFrequency
public void setReportFrequency(int f)
getReportFrequency
public int getReportFrequency()
mutationProbTipText
public String mutationProbTipText()
setMutationProb
public void setMutationProb(double m)
getMutationProb
public double getMutationProb()
crossoverProbTipText
public String crossoverProbTipText()
setCrossoverProb
public void setCrossoverProb(double c)
getCrossoverProb
public double getCrossoverProb()
maxGenerationsTipText
public String maxGenerationsTipText()
setMaxGenerations
public void setMaxGenerations(int m)
getMaxGenerations
public int getMaxGenerations()
populationSizeTipText
public String populationSizeTipText()
setPopulationSize
public void setPopulationSize(int p)
getPopulationSize
public int getPopulationSize()
globalInfo
public String globalInfo()
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