3.1 Logistic迴歸原理,參數推導及Python實現

import matplotlib.pyplot as plt import numpy as np #假設 def logistic(x): return 1/(1+np.exp(-x)) #隨機梯度下降 def SGD(X,Y,a=0.001): theta = np.mat([0, 0], dtype='float64') for time in range(3000
相關文章
相關標籤/搜索