梯度下降Intuition

Gradient Descent Intuition

In this video we explored the scenario where we used one parameterθ1and plotted its cost function to implement a gradient descent. Our formula for a single parameter was :

Repeat until convergence:

θ1:=θ1−αddθ1J(θ1)

Regardless of the slope's sign forddθ1J(θ1),θ1eventually converges to its minimum value. The following graph shows that when the slope is negative, the value ofθ1increases and when it is positive, the value ofθ1decreases.



On a side note, we should adjust our parameterαto ensure that the gradient descent algorithm converges in a reasonable time. Failure to converge or too much time to obtain the minimum value imply that our step size is wrong.



How does gradient descent converge with a fixed step sizeα?

The intuition behind the convergence is thatddθ1J(θ1)approaches 0 as we approach the bottom of our convex function. At the minimum, the derivative will always be 0 and thus we get:

θ1:=θ1−α∗0


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 一个人 就这样活的 是不是也是幸福的? 一开始 我不理解那些没有感情还在一起生活的人 现在我 渐渐明白那些也懂了没...
    独_彼岸花阅读 1,468评论 0 1
  • 熏日会微茫,旧人西归廊。弱柳抚秋水,落叶不愁妆。云牟候,雪衣娘。 星河隐朝阳,山水影依傍。玉兰生清泉,娇花蝶一双。...
    恋伊宛似风吹雪阅读 1,432评论 0 1
  • 如果你觉得不快乐,觉得世界对你的态度变了,就说明你生起了分别心,也就是诸如善恶、好坏、高低、贫富、大小之类的对立概...
    阳焱焱阅读 2,271评论 0 1
  • 一蓑烟雨破寒川,郎君高中凯歌还。 此去不知几千里,紧缝密补话不完。 朝起登高望君处,黄昏抹泪浣衣衫。 不知何日得君...
    上官飞鸿阅读 3,114评论 10 18

友情链接更多精彩内容