梯度下降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


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 一個(gè)人 就這樣活的 是不是也是幸福的? 一開始 我不理解那些沒有感情還在一起生活的人 現(xiàn)在我 漸漸明白那些也懂了沒...
    獨(dú)_彼岸花閱讀 209評(píng)論 0 1
  • 熏日會(huì)微茫,舊人西歸廊。弱柳撫秋水,落葉不愁?yuàn)y。云牟候,雪衣娘。 星河隱朝陽,山水影依傍。玉蘭生清泉,嬌花蝶一雙。...
    戀伊宛似風(fēng)吹雪閱讀 203評(píng)論 0 1
  • 如果你覺得不快樂,覺得世界對(duì)你的態(tài)度變了,就說明你生起了分別心,也就是諸如善惡、好壞、高低、貧富、大小之類的對(duì)立概...
    陽焱焱閱讀 318評(píng)論 0 1
  • 一蓑煙雨破寒川,郎君高中凱歌還。 此去不知幾千里,緊縫密補(bǔ)話不完。 朝起登高望君處,黃昏抹淚浣衣衫。 不知何日得君...
    上官飛鴻閱讀 460評(píng)論 10 18

友情鏈接更多精彩內(nèi)容