Neuron which computes the Logistic (logistic) function with range [0,1]. More...
#include <shark/Models/NeuronLayers.h>
| Public Types | |
| typedef EmptyState | State | 
| Public Member Functions | |
| template<class Arg > | |
| void | evalInPlace (Arg &arg) const | 
| template<class Arg > | |
| void | evalInPlace (Arg &arg, State &) const | 
| template<class Output , class Derivative > | |
| void | multiplyDerivative (Output const &output, Derivative &der, State const &state) const | 
Neuron which computes the Logistic (logistic) function with range [0,1].
The Logistic function is
\[ f(x)=\frac 1 {1+exp^(-x)}\]
it's derivative can be computed as
\[ f'(x)= f(x)(1-f(x)) \]
Definition at line 78 of file NeuronLayers.h.
Definition at line 79 of file NeuronLayers.h.
| 
 | inline | 
Definition at line 81 of file NeuronLayers.h.
References shark::sigmoid().
Referenced by evalInPlace().
| 
 | inline | 
Definition at line 86 of file NeuronLayers.h.
References evalInPlace().
| 
 | inline | 
Definition at line 91 of file NeuronLayers.h.