July 2018
Intermediate to advanced
474 pages
13h 37m
English
This section walks through the steps of creating and plotting a sigmoid function with sample data.
def sigmoid(input): return 1/(1+np.exp(-input))
X = np.arange(-10,10,1)
Y = sigmoid(X)
plt.figure(figsize=(6, 4), dpi= 75)plt.axis([-10,10,-0.25,1.2])plt.grid()plt.plot(X,Y)plt.title('Sigmoid Function')plt.show()
Read now
Unlock full access