231 B
231 B
1.py
y = wx + b
梯度下降算法
b_gradient += -\frac{2}{N} \left(y - (w_current \cdot x + b_current)\right)
w_gradient += -\frac{2}{N} \cdot x \cdot \left(y - (w_current \cdot x + b_current)\right)