|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.ai.geneticalgorithm.AbstractChromosome
org.vizzini.ai.geneticalgorithm.ChromosomeDouble
org.vizzini.ai.geneticalgorithm.ChromosomeNeuralNetwork
public class ChromosomeNeuralNetwork
Provides a chromosome which contains DefaultNeuralNetwork
s.
Field Summary |
---|
Fields inherited from interface org.vizzini.ai.geneticalgorithm.IChromosome |
---|
UNKNOWN_FITNESS |
Constructor Summary | |
---|---|
ChromosomeNeuralNetwork(INeuralNetwork network)
Construct this object using the given parameter. |
Method Summary | |
---|---|
static void |
chromosomeToNetwork(ChromosomeDouble chromosome,
INeuralNetwork network)
Set the neural network's weights from the chromosome. |
static int |
computeSize(INeuralNetwork network)
Compute the chromosome size based upon the given neural network. |
void |
copy(IChromosome another)
Copy the given chromosome into this. |
static int |
getIndex(INeuralNetwork network,
int layerIndex,
int i,
int j)
Return the gene index of the given neural network coordinates. |
INeuralNetwork |
getNeuralNetwork()
Return the neural network. |
boolean |
isDirty()
Return true if this chromosome is out of sync with the neural network. |
static void |
networkToChromosome(INeuralNetwork network,
ChromosomeDouble chromosome)
Set the chromosome's genes from the neural network weights. |
void |
setFitnessUnknown()
Set the fitness to unknown. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class org.vizzini.ai.geneticalgorithm.ChromosomeDouble |
---|
clone, equals, get, hashCode, mix, mix, mutate, randomlyInitialize, set, setRandomMax, setRandomMin, size, splice |
Methods inherited from class org.vizzini.ai.geneticalgorithm.AbstractChromosome |
---|
addFitness, compareTo, getDescription, getFitness, isFitnessUnknown, setDescription, setFitness |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChromosomeNeuralNetwork(INeuralNetwork network)
Method Detail |
---|
public static void chromosomeToNetwork(ChromosomeDouble chromosome, INeuralNetwork network)
public static int computeSize(INeuralNetwork network)
public static int getIndex(INeuralNetwork network, int layerIndex, int i, int j)
public static void networkToChromosome(INeuralNetwork network, ChromosomeDouble chromosome)
public void copy(IChromosome another)
copy
in interface IChromosome
copy
in class ChromosomeDouble
public INeuralNetwork getNeuralNetwork()
public boolean isDirty()
public void setFitnessUnknown()
setFitnessUnknown
in interface IChromosome
setFitnessUnknown
in class AbstractChromosome
public String toString()
toString
in class ChromosomeDouble
|
||||||||||
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 |