|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.training.backpropagation.BackpropagationLayer
public class BackpropagationLayer
BackpropagationLayer: The back propagation training algorithm requires training data to be stored for each of the layers. The Backpropagation class creates a BackpropagationLayer object for each of the layers in the neural network that it is training.
| Constructor Summary | |
|---|---|
BackpropagationLayer(Backpropagation backpropagation,
FeedforwardLayer layer)
Construct a BackpropagationLayer object that corresponds to a specific neuron layer. |
|
| Method Summary | |
|---|---|
void |
accumulateMatrixDelta(int i1,
int i2,
double value)
Accumulate a matrix delta. |
void |
accumulateThresholdDelta(int index,
double value)
Accumulate a threshold delta. |
void |
calcError()
Calculate the current error. |
void |
calcError(NeuralData ideal)
Calculate the error for the given ideal values. |
void |
clearError()
Clear any error values. |
double |
getError(int index)
Get the error for the specified neuron. |
double |
getErrorDelta(int index)
Get the error delta for the specified neuron. |
void |
learn(double learnRate,
double momentum)
Learn from the last error calculation. |
void |
setError(int index,
double e)
Set the error for the specified neuron. |
void |
setErrorDelta(int index,
double d)
Set the error delta for the specified neuron. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BackpropagationLayer(Backpropagation backpropagation,
FeedforwardLayer layer)
backpropagation - The back propagation training object.layer - The layer that this object corresponds to.| Method Detail |
|---|
public void accumulateMatrixDelta(int i1,
int i2,
double value)
i1 - The matrix row.i2 - The matrix column.value - The delta value.
public void accumulateThresholdDelta(int index,
double value)
index - The threshold index.value - The threshold value.public void calcError()
public void calcError(NeuralData ideal)
ideal - Ideal output values.public void clearError()
public double getError(int index)
index - The index for the specified neuron.
public double getErrorDelta(int index)
index - The specified neuron.
public void learn(double learnRate,
double momentum)
learnRate - The learning rate.momentum - The momentum.
public void setError(int index,
double e)
index - The specified neuron.e - The error value.
public void setErrorDelta(int index,
double d)
index - The specified neuron.d - The error delta.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||