|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ai.geneticalgorithm.AbstractGeneticAlgorithm
org.vizzini.ai.geneticalgorithm.example.CharacterRecognitionGA
public class CharacterRecognitionGA
Provides an example genetic algorithm which searches for a neural network
which can identify seven digitized characters. This example excercises the
ChromosomeNeuralNetwork
and
AbstractGeneticAlgorithm
.
Field Summary |
---|
Fields inherited from class org.vizzini.ai.geneticalgorithm.AbstractGeneticAlgorithm |
---|
_crossoverFraction, _crossoverType, _elapsedTime, _generation |
Constructor Summary | |
---|---|
CharacterRecognitionGA()
|
Method Summary | |
---|---|
protected static String |
arrayToString(double[] array)
|
protected IChromosome |
createChromosome()
Create a new chromosome. |
protected void |
evaluateFitness()
Evaluate the fitness of all chromosomes in the population. |
protected int |
evaluateNetwork(INeuralNetwork network,
double[] inputs,
int target,
boolean isPrinting)
Evaluate the given neural network using the given inputs and target. |
protected int |
getPerfectFitness()
Return the perfect fitness. |
static void |
main(String[] args)
Application method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CharacterRecognitionGA()
Method Detail |
---|
public static final void main(String[] args)
protected static String arrayToString(double[] array)
protected IChromosome createChromosome()
createChromosome
in class AbstractGeneticAlgorithm
protected void evaluateFitness()
evaluateFitness
in class AbstractGeneticAlgorithm
protected int evaluateNetwork(INeuralNetwork network, double[] inputs, int target, boolean isPrinting)
protected int getPerfectFitness()
getPerfectFitness
in class AbstractGeneticAlgorithm
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |