|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.solve.genetic.GeneticAlgorithm<java.lang.Double>
org.encog.neural.networks.training.genetic.NeuralGeneticAlgorithm
public class NeuralGeneticAlgorithm
NeuralGeneticAlgorithm: Implements a genetic algorithm that allows a feedforward neural network to be trained using a genetic algorithm. This algorithm is for a feed forward neural network. This class is abstract. If you wish to train the neural network using training sets, you should use the TrainingSetNeuralGeneticAlgorithm class. If you wish to use a cost function to train the neural network, then implement a subclass of this one that properly calculates the cost.
| Field Summary |
|---|
| Fields inherited from class org.encog.solve.genetic.GeneticAlgorithm |
|---|
TIMEOUT |
| Constructor Summary | |
|---|---|
NeuralGeneticAlgorithm()
|
|
| Method Summary | |
|---|---|
double |
getError()
Get the current error percent from the training. |
BasicNetwork |
getNetwork()
Get the current best neural network. |
| Methods inherited from class org.encog.solve.genetic.GeneticAlgorithm |
|---|
getChromosome, getChromosomes, getCutLength, getMatingPopulation, getMutationPercent, getPercentToMate, getPool, getPopulationSize, isPreventRepeat, iteration, setChromosome, setChromosomes, setCutLength, setMatingPopulation, setMutationPercent, setPercentToMate, setPool, setPopulationSize, setPreventRepeat, sortChromosomes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.encog.neural.networks.Train |
|---|
iteration |
| Constructor Detail |
|---|
public NeuralGeneticAlgorithm()
| Method Detail |
|---|
public BasicNetwork getNetwork()
getNetwork in interface Trainpublic double getError()
Train
getError in interface Train
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||