import numpy as np
def sigmoid (x,deriv=False):
if (deriv==True):#反向传播.x=sigmoid(x)
return x*(1-x)
return 1/(1+np.exp(-x))
# 输入数据
x=np.array([[0,0,1],
[0
import numpy as np
def sigmoid (x,deriv=False):
if (deriv==True):#反向传播.x=sigmoid(x)
return x*(1-x)
return 1/(1+np.exp(-x))
# 输入数据
x=np.array([[0,0,1],
[0