|
|||||||||||
| 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
A simple implementation of a feedforward network.
| Field Summary | |
protected FFNLayer[] |
nnLayers
The layers in this network. |
protected int |
numLayers
The number of layers in the feedforward network. |
| Fields inherited from class org.generation5.nn.NeuralNetwork |
activation, visualization |
| Constructor Summary | |
FeedForwardNN(int hiddenLayers)
Creates a new instance of FeedForwardNN |
|
| Method Summary | |
void |
initialize()
Initialize the network. |
static void |
main(java.lang.String[] args)
|
double |
run(double[] inputData)
Run the network with the given inputs. |
void |
setHiddenLayer(FFNLayer hidden,
int layer)
Set the given hidden layer. |
void |
setInputLayer(FFNInputLayer input)
Set the input layer for the network. |
void |
setOutputLayer(FFNLayer output)
Set the output layer. |
double |
train(double[] inputData,
double[] outputData)
This class does not implement a training algorithm. |
| 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 int numLayers
protected FFNLayer[] nnLayers
| Constructor Detail |
public FeedForwardNN(int hiddenLayers)
hiddenLayers - the number of hidden layers to be in this network.| Method Detail |
public void setInputLayer(FFNInputLayer input)
input - the input layer.
public void setHiddenLayer(FFNLayer hidden,
int layer)
hidden - the hidden layer.layer - the layer index.public void setOutputLayer(FFNLayer output)
output - the output layer.
public void initialize()
throws NeuralNetworkException
initialize in class NeuralNetworkNeuralNetworkException - an exception is thrown if a layer is missing.
public double run(double[] inputData)
throws NeuralNetworkException
run in class NeuralNetworkinputData - the inputs.
NeuralNetworkException - unused.
public double train(double[] inputData,
double[] outputData)
train in class NeuralNetworkinputData - unused.outputData - unused.
public static void main(java.lang.String[] args)
args - the command line arguments
|
This documentation is part of the Generation5 JDK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||