|
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.Chromosome<java.lang.Double>
org.encog.neural.networks.training.genetic.NeuralChromosome
org.encog.neural.networks.training.genetic.TrainingSetNeuralChromosome
public class TrainingSetNeuralChromosome
TrainingSetNeuralChromosome: Implements a chromosome that allows a feedforward neural network to be trained using a genetic algorithm. The network is trained using training sets. The chromosome for a feed forward neural network is the weight and threshold matrix.
| Constructor Summary | |
|---|---|
TrainingSetNeuralChromosome(TrainingSetNeuralGeneticAlgorithm genetic,
BasicNetwork network)
The constructor, takes a list of cities to set the initial "genes" to. |
|
| Method Summary | |
|---|---|
void |
calculateCost()
Calculate the cost for this chromosome. |
TrainingSetNeuralGeneticAlgorithm |
getGeneticAlgorithm()
Get the genetic algorithm in use. |
void |
setGenes(java.lang.Double[] list)
Set all genes. |
| Methods inherited from class org.encog.neural.networks.training.genetic.NeuralChromosome |
|---|
getNetwork, initGenes, mutate, setNetwork, updateGenes, updateNetwork |
| Methods inherited from class org.encog.solve.genetic.Chromosome |
|---|
compareTo, getCost, getGene, getGenes, mate, setCost, setGene, setGenesDirect, setGeneticAlgorithm, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TrainingSetNeuralChromosome(TrainingSetNeuralGeneticAlgorithm genetic,
BasicNetwork network)
genetic - The genetic algorithm used with this chromosome.network - The neural network to train.| Method Detail |
|---|
public void calculateCost()
calculateCost in class Chromosome<java.lang.Double>public TrainingSetNeuralGeneticAlgorithm getGeneticAlgorithm()
getGeneticAlgorithm in class Chromosome<java.lang.Double>public void setGenes(java.lang.Double[] list)
setGenes in class NeuralChromosomelist - A list of genes.
NeuralNetworkException
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||