|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.htwdd.rosenkoenig.neuro.net.Layer
de.htwdd.rosenkoenig.neuro.net.InnerLayer
public class InnerLayer
This class represents all hidden layers. The name is a little misleading because due to historical reasons the output layer is of this type, too.
| Field Summary | |
|---|---|
private double[] |
gradient
The array containing the gradients of all neurons of this layer. |
private Synapse |
inputSynapse
This is the input synapse (i.e the connection from the previous layer). |
| Fields inherited from class de.htwdd.rosenkoenig.neuro.net.Layer |
|---|
activationFunction, biased, nettoInput, neuronsThatAreNotBiasedCount, output, outputSynapse |
| Constructor Summary | |
|---|---|
InnerLayer()
The default ctor. |
|
InnerLayer(int numNeurons,
boolean biased)
Ctor that creates an InnerLayer with numNeurons that is biased or not. |
|
InnerLayer(int numNeurons,
boolean biased,
ActivationFunction activationFunction)
Ctor that creates a InnerLayer with numNeurons that is biased or not. |
|
| Method Summary | |
|---|---|
double[] |
getGradient()
Getter of the property gradient |
Synapse |
getInputSynapse()
Getter of the property inputSynapse |
void |
initForTraining()
Initialize the layer for training. |
void |
propagate()
Propagate a pattern through the net using the output of the previous layer as input. |
void |
setGradient(double[] gradient)
Setter of the property gradient |
void |
setInputSynapse(Synapse inputSynapse)
Setter of the property inputSynapse |
| Methods inherited from class de.htwdd.rosenkoenig.neuro.net.Layer |
|---|
getActivationFunction, getNettoInput, getNeuronsThatAreNotBiasedCount, getOutput, getOutputSynapse, getSize, isBiased, setActivationFunction, setBiased, setOutputSynapse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Synapse inputSynapse
private double[] gradient
| Constructor Detail |
|---|
public InnerLayer()
public InnerLayer(int numNeurons,
boolean biased)
numNeurons - the number of neurons for this InnerLayerbiased - whether or not this InnerLayer is a biased one
public InnerLayer(int numNeurons,
boolean biased,
ActivationFunction activationFunction)
numNeurons - the number of neurons for this InnerLayerbiased - whether or not this InnerLayer is a biased one| Method Detail |
|---|
public Synapse getInputSynapse()
public void setInputSynapse(Synapse inputSynapse)
inputSynapse - The inputSynapse to set.public void propagate()
propagate in class Layerpublic double[] getGradient()
public void setGradient(double[] gradient)
gradient - The gradients to set.public final void initForTraining()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||