shark::FastSigmoidNeuron Struct Reference

Fast sigmoidal function, which does not need to compute an exponential function. More...

#include <shark/Models/Neurons.h>

+ Inheritance diagram for shark::FastSigmoidNeuron:

Public Member Functions

template<class T >
function (T x) const
 
template<class T >
functionDerivative (T y) const
 

Detailed Description

Fast sigmoidal function, which does not need to compute an exponential function.

It is defined as

\[ f(x)=\frac x {1+|x|}\]

it's derivative can be computed as

\[ f'(x)= (1 - |f(x)|)^2 \]

Definition at line 174 of file Neurons.h.

Member Function Documentation

template<class T >
T shark::FastSigmoidNeuron::function ( x) const
inline

Definition at line 176 of file Neurons.h.

template<class T >
T shark::FastSigmoidNeuron::functionDerivative ( y) const
inline

Definition at line 180 of file Neurons.h.

References shark::sqr().


The documentation for this struct was generated from the following file: