9-1 什么是逻辑回归
Notbook 示例
Notbook 源码
1 Sigmoid 函数 2 [1] 3 import numpy as np 4 import matplotlib.pyplot as plt 5 [2] 6 def sigmoid(t): 7 return 1 / (1 + np.exp(-t)) 8 [3] 9 X = np.linspace(-10,10,500) 10 y = sigmoid(X) 11 12 plt.plot(X,y) 13 [<matplotlib.lines.Line2D at 0x18b21371c40>]
9-2 逻辑回归的损失函数
9-3 逻辑回归损失函数的梯度
标签:10,逻辑,sigmoid,回归,Notbook,np From: https://www.cnblogs.com/Cai-Gbro/p/16837746.html