Types of activation functions

  1. Sigmoid: This type of activation function comes along as follows:

The value of this function ranges between 0 and 1. It comes with a lot of issues:

  1. Hyperbolic tangent function (tanh): The mathematical formula to represent it is this:

The value of this function ranges between -1 and +1. However, it still faces the vanishing gradient problem:

  1. Rectified Linear Units (ReLU): Mathematically, we represent it in the following manner:

Going by the preceding diagram, ReLU is linear for all positive values, and zero for all negative values. This means that the following are true: