Deep Learning Algorithm Implementations 1.0.0
C++ implementations of fundamental deep learning algorithms
|
Sigmoid activation function. More...
#include <functions.hpp>
Public Member Functions | |
double | forward (double x) |
Compute sigmoid forward pass. | |
double | backward (double x) |
Compute sigmoid derivative. | |
![]() | |
virtual | ~ActivationFunction ()=default |
Virtual destructor for proper cleanup. | |
Sigmoid activation function.
The sigmoid function maps any real number to a value between 0 and 1, making it useful for binary classification problems.
Mathematical definition:
Definition at line 81 of file functions.hpp.
double dl::activation::Sigmoid::backward | ( | double | x | ) |
Compute sigmoid derivative.
x | Input value |
Definition at line 26 of file functions.cpp.
double dl::activation::Sigmoid::forward | ( | double | x | ) |
Compute sigmoid forward pass.
x | Input value |
Definition at line 20 of file functions.cpp.