FuctionStep-to-step Fuction1,0,1,0Sigmoid FuctionH(x)=1/(1+exp(-x))PictureStep-to-step Fuction Sigmoid FuctionCodeStep-to-step Fuctionimport numpy as np import matplotlib.pylab as plt def step_fuction(x): # x_=[] # for i in x: # if(i>0): # x_.append(1) # else: # x_.append(0) # return x_ return np.array(x>0,dtype=np.int) x=np.arange(-5,5,0.1) # formation -5~5 andArithmetic sequence 0.1 y=step_fuction(x) print(y) plt.plot(x,y) plt.ylim(-0.1,1.1) plt.show() Sigmoid Fuction Fuctionimport numpy as np import matplotlib.pylab as plt def step_fuction(x): return 1/(1+np.exp(-x)) x=np.arange(-5,5,0.1) # formation -5~5 andArithmetic sequence 0.1 y=step_fuction(x) print(y) plt.plot(x,y) plt.ylim(-0.1,1.1) plt.sho...