#include <SimpleNeuron.h>
Inheritance diagram for SimpleNeuron:
Public Member Functions | |
SimpleNeuron (int label, bool hasBias=true) | |
Creates a simple neuron with the given label. | |
virtual void | setDesiredOutput (real desired) |
Sets the desired output of the neuron. | |
virtual void | setActivationFunction (ActivationFunction f, ActivationFunction df) |
Sets the activation function and its derivative (required for error backpropagation). | |
virtual const char * | getClassName () const |
Returns "SimpleNeuron". | |
Protected Member Functions | |
virtual void | _recacheOutput () const |
Neuron::_recacheOutput. | |
virtual void | _recacheError () const |
Neuron::_recacheError. | |
Protected Attributes | |
ActivationFunction | _dActivationFunction |
The derivative of the activation function, required for gradient descent training. |
Probably the first type of neuron you would come across in any introductory literature of neural networks.
|
Creates a simple neuron with the given label.
|
|
Implements AbstractNeuron. |
|
Implements AbstractNeuron. Reimplemented in KohonenNeuron. |
|
Returns "SimpleNeuron".
Reimplemented from AbstractNeuron. Reimplemented in RecurrentNeuron. |
|
Sets the activation function and its derivative (required for error backpropagation).
|
|
Sets the desired output of the neuron. Should be called only for output neurons, i.e., those whose output is not connected to anyone else. Setting the desired output at these neurons will form the basis of error backpropagation
Implements AbstractNeuron. |
|
The derivative of the activation function, required for gradient descent training.
|