|
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.propagation.PropagationLevel
public class PropagationLevel
Holds a level worth of information used by each of the propagation methods. A level is defined as all of the layers that feed a single next layer. In a pure feedforward neural network there will be only one layer per level. However, recurrent neural networks will contain multiple layers per level.
| Constructor Summary | |
|---|---|
PropagationLevel(Propagation propagation,
Layer layer)
Construct a propagation level. |
|
PropagationLevel(Propagation propagation,
java.util.List<Synapse> outgoing)
Construct a propagation level with a list of outgoing synapses. |
|
| Method Summary | |
|---|---|
void |
accumulateThresholdGradient(int index,
double value)
Call this method to accumulate the threshold gradients during a batch. |
java.util.List<Synapse> |
determinePreviousSynapses()
Determine the previous synapses from this level. |
double |
getActual(int index)
Get the actual output from the specified neuron. |
double |
getDelta(int index)
The deltas, or differences, between the ideal and actual. |
double[] |
getDeltas()
|
double |
getLastThresholdGradent(int index)
Get the specified threshold gradient, from the last iteration of training. |
java.util.List<Layer> |
getLayers()
|
int |
getNeuronCount()
|
java.util.List<PropagationSynapse> |
getOutgoing()
|
double |
getThresholdDelta(int i)
Get the specified threshold value's delta. |
double |
getThresholdGradient(int index)
Get a specific threshold gradient. |
double[] |
getThresholdGradients()
|
void |
setDelta(int index,
double d)
Set the specified delta value. |
void |
setLastThresholdGradient(int i,
double d)
Set the threshold gradient from the last iteration. |
void |
setThresholdDelta(int i,
double d)
Set the specified threshold delta. |
void |
setThresholdGradient(int index,
double d)
Set the specified threshold gradient to the specified value. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PropagationLevel(Propagation propagation,
Layer layer)
propagation - The propagation object that created this.layer - The initial layer, others can be added later.
public PropagationLevel(Propagation propagation,
java.util.List<Synapse> outgoing)
propagation - The propagation object that created this.outgoing - The outgoing synapses.| Method Detail |
|---|
public void accumulateThresholdGradient(int index,
double value)
index - The index of the gradient to modify.value - The value to be added to the existing gradients.public java.util.List<Synapse> determinePreviousSynapses()
public double getActual(int index)
index - The neuron needed.
public double getDelta(int index)
index - The neuron for which we seek a delta.
public double[] getDeltas()
public double getLastThresholdGradent(int index)
index - The neuron for which this threshold gradient is
needed.
public java.util.List<Layer> getLayers()
public int getNeuronCount()
public java.util.List<PropagationSynapse> getOutgoing()
public double getThresholdDelta(int i)
i - The threshold value needed.
public double getThresholdGradient(int index)
index - The gradient index to retrieve.
public double[] getThresholdGradients()
public void setDelta(int index,
double d)
index - The delta value to set.d - The new delta value.
public void setLastThresholdGradient(int i,
double d)
i - The index of the threshold gradient to set.d - The new gradient value.
public void setThresholdDelta(int i,
double d)
i - The index of the threshold delta to change.d - The new value of the specified threshold delta.
public void setThresholdGradient(int index,
double d)
index - The gradient index to be set.d - The new value for the specified gradient index.public java.lang.String toString()
toString in class java.lang.Object
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||