|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.computing.ai.neurocomputing.NeuralNetwork
org.jscience.computing.ai.neurocomputing.FeedForwardNN
org.jscience.computing.ai.neurocomputing.EvoFeedForwardNN
public class 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.jscience.computing.ai.neurocomputing.FeedForwardNN |
|---|
nnLayers, numLayers |
| Fields inherited from class org.jscience.computing.ai.neurocomputing.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)
DOCUMENT ME! |
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.jscience.computing.ai.neurocomputing.FeedForwardNN |
|---|
initialize, run, setHiddenLayer, setInputLayer, setOutputLayer, train |
| Methods inherited from class org.jscience.computing.ai.neurocomputing.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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||