###################### # # # Import Section # # # ###################### from matplotlib import pylab import numpy ##################################### # # # Defining the sigmoid Function # # # ##################################### def sigmoid(x): sigmoid_return = 1 / (1 + numpy.exp(-x)) return sigmoid_return # Linspace is used as array with start and # stop value. In the line below -10 is the # start value and 10 is the stop value # and 10 is the value of total number of # steps with end point included true as # default x = pylab.linspace(-10,10,10)…

# Day: August 28, 2019

## Sigmoid Function

As in the last article we were discussing Perceptron. Now we will discuss the Sigmoid Activation Function. As the name represents its shape will be somewhere similar to sigma σ. The above-mentioned figure is the graph of the sigmoid activation function. It provides the output from 0 to 1. The sigmoid activation function can be described by the following expression First let’s assume that we put three values (0, +∞, -∞) turn by turn in the above-mentioned expression. First, let’s put 0 then the expression will become After putting the…