#include <OutputNeuron.h>
Neuron at end of Neural Network outputting the nets output
| OutputNeuron::OutputNeuron |
( |
std::function< double(double)> |
activationFunc | ) |
|
Create a new OutputNeuron using the given activation function
- Parameters
-
| activationFunc | function to use for neuron activation |
| OutputNeuron::OutputNeuron |
( |
std::function< double(double)> |
activationFunc, |
|
|
std::vector< Edge * > |
inputs |
|
) |
| |
Create a new OutputNeuron using the given activation function with given inputs
- Parameters
-
| activationFunc | function to use for neuron activation |
| inputs | vector of pointers to incoming edges |
| OutputNeuron::OutputNeuron |
( |
std::function< double(double)> |
activationFunc, |
|
|
double |
targetValue |
|
) |
| |
Create a new OutputNeuron using the given activation function and target value
- Parameters
-
| activationFunc | function to use for neuron activation |
| targetValue | target output value of the neuron |
| void OutputNeuron::calcDelta |
( |
| ) |
|
Calculate delta for output Neuron according to the GDR
Inherits:
Calculate and store the delta from this Neuron according to the GDR. All output Neurons should have their deltas updated before calculating this.
| double OutputNeuron::getDifference |
( |
| ) |
|
Get the difference between actual output and target
- Returns
- the difference for the Neurons current values
| void OutputNeuron::setTarget |
( |
double |
targetValue | ) |
|
Set the target value of the OutputNeuron
- Parameters
-
| targetValue | value to target as output |
The documentation for this class was generated from the following files: