|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.penguinwerks.jodene.Neuron
A neuron is a basic processing unit in the network. It maintains inputs, weights, and the feedback from training. When all the inputs have arrived at the neuron, it sends a signal down all its output axons. When all the necessary feedback arrives at the neuron, the neuron propagates the feedback to its input neurons.
| Constructor Summary | |
protected |
Neuron()
|
|
Neuron(java.lang.String name)
Constructor - requires a name which needs to be unique for the network. |
| Method Summary | |
void |
addInputAxon(Axon axon)
Add a new input axon to the neuron. |
void |
addOutputAxon(Axon axon)
Adds a new output axon to the neuron. |
void |
adjustWeights()
Adjust the weights. |
java.lang.String |
getName()
Returns the name of this neuron. |
double |
getOutputValue()
Returns the output value for this neuron. |
NeuronTraining |
getTrainer()
Returns the affiliated neuron trainer. |
void |
receiveFeedback(double val,
Axon source)
Receives feedback from subsequent layer neurons. |
void |
receiveSignal(Axon firingAxon,
double val)
This receives an input signal from the input axon. |
void |
setActivationFunction(ActivationFunction function)
Sets the activation function used by this neuron. |
void |
setError(java.lang.Double actual,
java.lang.Double expected)
Set the error using the actual and expected values. |
void |
setInput(double val)
If this neuron is an input neuron, then the output value is set by the neural network and the results are propagated to the output axons. |
void |
setNeuralTrainer(NeuronTraining trainer)
Set the neuron trainer for this neuron. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Neuron()
public Neuron(java.lang.String name)
name - The name of this neuron.| Method Detail |
public java.lang.String getName()
public void addInputAxon(Axon axon)
axon - The new input Axon.public void setActivationFunction(ActivationFunction function)
function - The activation function.public void addOutputAxon(Axon axon)
axon - The new axon.
public void receiveSignal(Axon firingAxon,
double val)
firingAxon - The axon sending signal.val - The value firing into this neuron.public void setInput(double val)
val - The input value.public double getOutputValue()
public void setError(java.lang.Double actual,
java.lang.Double expected)
actual - The actual values obtained.expected - The expected values from an example.
public void receiveFeedback(double val,
Axon source)
val - The feedback value.source - The axon sending the feedback.public void setNeuralTrainer(NeuronTraining trainer)
trainer - The neuron trainer.public NeuronTraining getTrainer()
public void adjustWeights()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||