Neuron which computes the Logistic (logistic) function with range [0,1]. More...
#include <shark/Models/Neurons.h>
Public Member Functions | |
template<class T > | |
T | function (T x) const |
template<class T > | |
T | functionDerivative (T y) 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)= 1-f(x)^2 \]
|
inline |
Definition at line 118 of file Neurons.h.
References shark::sigmoid().
|
inline |