19 lines
231 B
Markdown
19 lines
231 B
Markdown
# 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)
|
|
$$
|
|
|