楼主: jerker
40168 210

[机器学习]Mastering Machine Learning with scikit-learn (中文版、英文版)   [推广有奖]

141
乌拉圭16 发表于 2016-5-31 21:53:35 |只看作者 |坛友微信交流群
不错,很有帮助

使用道具

142
honeyying 发表于 2016-6-22 14:02:28 |只看作者 |坛友微信交流群
谢谢楼主分享~~~感谢

使用道具

梯度下降法拟合模型
前面的内容都是通过最小化成本函数来计算参数的:
这里 是解释变量矩阵,当变量很多(上万个)的时候, 计算量会非常大。另外,如果 的
行列式为0,即奇异矩阵,那么就无法求逆矩阵了。这里我们介绍另一种参数估计的方法,梯度下降
法(gradient descent)。拟合的目标并没有变,我们还是用成本函数最小化来进行参数估计。
梯度下降法被比喻成一种方法,一个人蒙着眼睛去找从山坡到溪谷最深处的路。他看不到地形图,所
以只能沿着最陡峭的方向一步一步往前走。每一步的大小与地势陡峭的程度成正比。如果地势很陡
峭,他就走一大步,因为他相信他仍在高出,还没有错过溪谷的最低点。如果地势比较平坦,他就走
一小步。这时如果再走大步,可能会与最低点失之交臂。如果真那样,他就需要改变方向,重新朝着
溪谷的最低点前进。他就这样一步一步的走啊走,直到有一个点走不动了,因为路是平的了,于是他
卸下眼罩,已经到了谷底深处,小龙女在等他。

Gradient descent is sometimes described by the analogy of a blindfolded man who
is trying to find his way from somewhere on a mountainside to the lowest point of
the valley. He cannot see the topography, so he takes a step in the direction with the
steepest decline. He then takes another step, again in the direction with the steepest
decline. The sizes of his steps are proportional to the steepness of the terrain at his
current position. He takes big steps when the terrain is steep, as he is confident that he
is still near the peak and that he will not overshoot the valley's lowest point. The man
takes smaller steps as the terrain becomes less steep. If he were to continue taking large
steps, he may accidentally step over the valley's lowest point. He would then need
to change direction and step toward the lowest point of the valley again. By taking
decreasingly large steps, he can avoid stepping back and forth over the valley's lowest
point. The blindfolded man continues to walk until he cannot take a step that will
decrease his altitude; at this point, he has found the bottom of the valley.



查看了原文,没有小龙女啊

使用道具

144
huanlexiaoniu 发表于 2016-6-27 17:24:38 |只看作者 |坛友微信交流群
不用论坛币,100个赞,楼主是好人

使用道具

145
免费使用 发表于 2016-7-17 11:58:13 |只看作者 |坛友微信交流群
好极了!
十分感谢分享!

使用道具

146
qwert365 发表于 2016-7-24 08:51:09 |只看作者 |坛友微信交流群
好书,深入浅出,还提供了最简单的实例

使用道具

147
iyishengyoun 发表于 2016-8-4 16:07:36 |只看作者 |坛友微信交流群
谢谢分享

使用道具

148
sallinger 发表于 2016-8-5 11:56:24 |只看作者 |坛友微信交流群
这个课本真的很有用,谢谢

使用道具

149
weixiao_best 发表于 2016-8-16 08:30:31 |只看作者 |坛友微信交流群
duoxie~~~

使用道具

150
hitzll123 发表于 2016-9-9 20:16:32 |只看作者 |坛友微信交流群
肿么下

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加JingGuanBbs
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-5 03:56