Activation Function
Activation Function
Definition :
An activation function is a mathematical function applied to
the output of a neuron. It introduces non-linearity into the
model, allowing the network to learn and represent
complex patterns in the data. Without this non-linearity
feature, a neural network would behave like a linear
regression model, no matter how many layers it has.
A) Identity Function :
Formula :
yout = f(x) = x, ∀x
B) Thereshold/step Function :
D) Sigmoid Function :
It is by far the most commonly used activation function in
neural networks. The need for sigmoid function stems from
the fact that many learning algorithms require the activation
function to be differentiable and hence continuous.
There are two types of sigmoid function:
Binary Sigmoid Function
Bipolar Sigmoid Function
Formula :
yout = f(x) = 1/1+e-kx
Formula :
Yout = f(x) = 1-e-kz/1+e-kz
The range of values of sigmoid functions can be
varied depending on the application. However, the
range of (-1,+1) is most commonly adopted.
Formula :
yout = f(x) ex-e-x/ ex+e-x