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 68 of file NeuronLayers.h.
Definition at line 69 of file NeuronLayers.h.
|
inline |
Definition at line 71 of file NeuronLayers.h.
|
inline |
Definition at line 76 of file NeuronLayers.h.
References shark::TanhNeuron::evalInPlace().
|
inline |
Definition at line 81 of file NeuronLayers.h.