org.encog.ml.ea.train
public interface EvolutionaryAlgorithm
Modifier and Type | Method and Description |
---|---|
void |
addOperation(double probability,
EvolutionaryOperator opp)
Add an operation.
|
void |
addScoreAdjuster(AdjustScore scoreAdjust)
Add a score adjuster.
|
void |
calculateScore(Genome g)
Calculate the score for a genome.
|
void |
finishTraining()
Called when training is finished.
|
GenomeComparator |
getBestComparator()
Get the comparator that is used to choose the "true best" genome.
|
Genome |
getBestGenome() |
GeneticCODEC |
getCODEC() |
double |
getError() |
int |
getIteration() |
int |
getMaxIndividualSize() |
int |
getMaxTries() |
OperationList |
getOperators() |
Population |
getPopulation() |
RuleHolder |
getRules() |
List<AdjustScore> |
getScoreAdjusters() |
CalculateScore |
getScoreFunction() |
SelectionOperator |
getSelection() |
GenomeComparator |
getSelectionComparator()
Get the comparator that is used to choose the "best" genome for
selection, as opposed to the "true best".
|
boolean |
getShouldIgnoreExceptions() |
Speciation |
getSpeciation() |
boolean |
isValidationMode() |
void |
iteration()
Perform a training iteration.
|
void |
setBestComparator(GenomeComparator bestComparator)
Set the comparator that is used to choose the "true best" genome.
|
void |
setPopulation(Population thePopulation)
Set the population.
|
void |
setRules(RuleHolder rules)
Set the rules holder to use.
|
void |
setSelection(SelectionOperator selection)
Set the selection operator.
|
void |
setSelectionComparator(GenomeComparator selectionComparator)
Set the comparator that is used to choose the "best" genome for
selection, as opposed to the "true best".
|
void |
setShouldIgnoreExceptions(boolean b)
Determines if genetic operator exceptions should be ignored.
|
void |
setSpeciation(Speciation m)
Set the speciation method.
|
void |
setValidationMode(boolean validationMode)
Determine if the genomes should be validated.
|
void addOperation(double probability, EvolutionaryOperator opp)
probability
- The probability of using this operator.opp
- The operator to add.void addScoreAdjuster(AdjustScore scoreAdjust)
scoreAdjust
- The score adjustor to add.void calculateScore(Genome g)
g
- The genome to calculate the score for.void finishTraining()
GenomeComparator getBestComparator()
Genome getBestGenome()
GeneticCODEC getCODEC()
double getError()
int getIteration()
int getMaxIndividualSize()
int getMaxTries()
OperationList getOperators()
Population getPopulation()
RuleHolder getRules()
List<AdjustScore> getScoreAdjusters()
CalculateScore getScoreFunction()
SelectionOperator getSelection()
GenomeComparator getSelectionComparator()
boolean getShouldIgnoreExceptions()
Speciation getSpeciation()
boolean isValidationMode()
void iteration()
void setBestComparator(GenomeComparator bestComparator)
bestComparator
- The best comparator.void setPopulation(Population thePopulation)
thePopulation
- The population.void setRules(RuleHolder rules)
rules
- The rules holder.void setSelection(SelectionOperator selection)
selection
- The selection operator.void setSelectionComparator(GenomeComparator selectionComparator)
selectionComparator
- The selection comparator.void setShouldIgnoreExceptions(boolean b)
b
- True if exceptions should be ignored.void setSpeciation(Speciation m)
m
- The speciation method.void setValidationMode(boolean validationMode)
validationMode
- True, if validation mode is enabled.Copyright © 2014. All Rights Reserved.