|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectneural.net.BackPropagator
public class BackPropagator
This class performs back-propagation on a Network to update/train the weights of the Neurons within each Layer in the Network
Constructor Summary | |
---|---|
BackPropagator(Network network,
double learningRate)
Constructor |
Method Summary | |
---|---|
void |
addInputOutput(double[] inputs,
double[] expectedOutputs)
Add an input and the expected output for this input |
java.util.ArrayList<java.lang.Double> |
getAverageErrors()
The averages from each input within the last run |
double |
runAndUpdate()
Run the input through an iteration, and update the weights of each neuron after the run of each input |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BackPropagator(Network network, double learningRate)
network
- - The Network to operate onlearningRate
- - The learning rate to use (should be between 0 and 1)Method Detail |
---|
public java.util.ArrayList<java.lang.Double> getAverageErrors()
public void addInputOutput(double[] inputs, double[] expectedOutputs) throws java.lang.Exception
inputs
- - input to useexpectedOutputs
- - output expected from this input
java.lang.Exception
- - throws an exception if the input size doesn't match that expected by
the Network, or the output size doesn't match that returned by the Networkpublic double runAndUpdate() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |