Sigmoids using matplot lib
import matplotlib.pylab as plt import numpy as np x= np.arange(-10,10,0.1) f= 1 / (1 + np.exp(-x)) plt.plot(x,f) plt.xlabel('x') plt.ylabel('f(x)') plt.show() Taking a look at what np.arange does. print (np.arange(-10,10,1)) [-10…