...

/

Activation Functions

Activation Functions

A neuron calculates the ‘weighted sum’ of its inputs and adds a bias.

Now the predicted value can be anything from -inf to +inf. The neuron really doesn’t know the bounds of the value. So how do we decide whether the neuron should fire or not? In other words, predict whether the class label is positive or negative(in the case we have two classes). Thus we add an activation function to make the neural network decide whether a neuron should be activated or not, hence the name, activation functions.

Types of Activation Functions

The following section discusses the several different kinds of activation functions used in deep learning:

Step function

The first thing that comes to our minds is how about a threshold-based activation function? We saw this activation function when we learned about perceptrons here.

If the predicted value (yy ...

svg viewer

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy