230603
This commit is contained in:
18
linear regression/1.md
Normal file
18
linear regression/1.md
Normal file
@@ -0,0 +1,18 @@
|
||||
# 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)
|
||||
$$
|
||||
|
||||
Reference in New Issue
Block a user