|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.generation5.nn.NeuralNetwork
org.generation5.nn.FeedForwardNN
org.generation5.nn.EvoFeedForwardNN
This class implements an evolutionary feedforward network.
| Field Summary | |
protected double |
fitnessValue
The fitness value for this feedforward network. |
protected double[][] |
inputData
The input test data. |
| Fields inherited from class org.generation5.nn.FeedForwardNN |
nnLayers, numLayers |
| Fields inherited from class org.generation5.nn.NeuralNetwork |
activation, visualization |
| Constructor Summary | |
EvoFeedForwardNN(int hidden)
Creates a new instance of EvoFeedForwardNN |
|
| Method Summary | |
void |
calculateFitness()
Calculate the fitness for this network. |
int |
compareTo(java.lang.Object o)
Compare to another feedforward network. |
double |
getFitness()
Return the fitness value for this network. |
static void |
main(java.lang.String[] args)
|
Evolvable |
mate(Evolvable partner)
Mate with another network. |
void |
mutate()
Mutate this feedforward network. |
void |
randomInitialize()
Randomly initialize the network. |
| Methods inherited from class org.generation5.nn.FeedForwardNN |
initialize, run, setHiddenLayer, setInputLayer, setOutputLayer, train |
| Methods inherited from class org.generation5.nn.NeuralNetwork |
getVisualization, render, setActivation, setVisualization, train, train, writeImage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected double fitnessValue
protected double[][] inputData
| Constructor Detail |
public EvoFeedForwardNN(int hidden)
hidden - the number of hidden layers.| Method Detail |
public static void main(java.lang.String[] args)
args - the command line argumentspublic void calculateFitness()
calculateFitness in interface Evolvablepublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the comparable object.
public double getFitness()
getFitness in interface Evolvablepublic Evolvable mate(Evolvable partner)
mate in interface Evolvablepartner - the other parent network.
public void mutate()
mutate in interface Evolvablepublic void randomInitialize()
randomInitialize in interface Evolvable
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||