shark::LogisticNeuron Struct Reference

Neuron which computes the Logistic (logistic) function with range [0,1]. More...

#include <shark/Models/Neurons.h>

+ Inheritance diagram for shark::LogisticNeuron:

Public Member Functions

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

Detailed Description

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 \]

Definition at line 116 of file Neurons.h.

Member Function Documentation

§ function()

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

Definition at line 118 of file Neurons.h.

References shark::sigmoid().

§ functionDerivative()

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

Definition at line 122 of file Neurons.h.


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