#逻辑回归的预测函数 def model(X,theta): return sigmoid(np.dot(X,theta.T))#矩阵X与参数theta的转置的乘积输入到sigmoid函数中去 sigmoid函数实现见本博客另外一篇