Add. Gradient Descent

pull/2/head
benjas 5 years ago
parent 55512b7ccf
commit 5ba9b9cb86

@ -67,17 +67,25 @@
#### 似然函数的作用
- 预测值与误差:![1613978116054](assets/1613978116054.png)
- 由于误差服从高斯分布:![1613978136136](assets/1613978136136.png)
- 预测值与误差1![1613978116054](assets/1613978116054.png)
> y是真实值、x是预测值、ε误差值现在我们要求的就是θ它应该怎么求解
- 由于误差服从高斯分布2![1613978136136](assets/1613978136136.png)
> 高斯分布的公式这里我们要求的是θ所以把θ移动到左边变成y - θX = ε,即演变成
- 将1式带入2![1613978160407](assets/1613978160407.png)
> 这里我们希望左边的x和θ组合完后和真实值y越解决越好即成为y的可能性越大越好
- 似然函数:![1613978566334](assets/1613978566334.png)
解释:什么样的参数跟我们的数据组合后恰好是真实值
- 对数似然:![1613978607945](assets/1613978607945.png)
解释:乘法难解加法就容易了,对数里乘法可以转换成加法
解释:乘法难解加法就容易了,对数里乘法可以转换成加法
- 展开化简:![1613980700874](assets/1613980700874.png)
@ -85,3 +93,9 @@
![1613980821171](assets/1613980821171.png)(最小二乘法)
#### 参数求解
- 目标函数:![1614044218548](assets/1614044218548.png)
- 求偏导:![1614044234709](assets/1614044234709.png)
- 偏导等于0![1614044250549](assets/1614044250549.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Loading…
Cancel
Save