plt绘制1 / (1 + np.exp(-x))

x = np.linspace(-20,20,10000)
y = np.array(1 / (1 + np.exp(-x)))
y1 = np.array(1 / (1 + np.exp(-x)) ** 0) / 2.0
plt.plot(x,y)
plt.plot(x,y1)
plt.axhline(y=0.7,ls="-",c="red")
plt.axis([-20,20,-0.1,1])
plt.show()

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_46815330/article/details/115317901
1
(1)
>&1
x1
今日推荐