[NN] Regularization Summary

Dropout:

  • Dropout is a regularization technique.
  • You only use dropout during training. Don't use dropout (randomly eliminate nodes) during test time.
  • Apply dropout both during forward and backward propagation.
  • 在訓練的時候,記得除以keep_prob來保持輸出相同的期望。During training time, divide each dropout layer by keep_prob to keep the same expected value for the activations. For example, if keep_prob is 0.5, then we will on average shut down half the nodes, so the output will be scaled by 0.5 since only the remaining half are contributing to the solution. Dividing by 0.5 is equivalent to multiplying by 2. Hence, the output now has the same expected value. You can check that this works even when keep_prob is other values than 0.5.

What we want you to remember from this notebook:

  • Regularization will help you reduce overfitting.
  • Regularization will drive your weights to lower values.
  • L2 regularization and Dropout are two very effective regularization techniques.
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

  • 近年來“跨界”已經成為一個娛樂圈的潮流 演員跨界做導演,導演忙著做演員,歌手轉行做段子手 最絕的是運動員都轉行做明...
    naib閱讀 364評論 0 0
  • 姥姥的一生很傳奇,可以說是一個鐵娘子,可是現在卻得了阿茲海默癥,現在會經常忘記剛剛吃過的飯菜,經常自己發(fā)呆,嗜睡…...
    一葉彰木閱讀 148評論 3 3
  • 今天用新的方法來練習寫字啦,果然是很累很累的呀。累并快樂著。
    余一浳閱讀 171評論 0 2

友情鏈接更多精彩內容