Skip to Content
深度學習|內行人的做法
book

深度學習|內行人的做法

by Josh Patterson, Adam Gibson
January 2019
Beginner to intermediate
576 pages
14h 31m
Chinese
GoTop Information, Inc.
Content preview from 深度學習|內行人的做法
84
|
第二章:神經網路和深度學習基礎
相反的,雖然比較小的學習速度最後應該還是會抵達誤差最小的位置(有可能是局部極
小值而不是整體最小值),但過程有可能需要很長的時間,而且對於一些運算量本來就
很大的程序來說,也會造成額外的負擔。如果遇上特別大型的資料集,神經網路訓練的
過程有可能動不動就需要耗費數週的時間,此時計算時間的長短更顯得特別重要。如果
你沒辦法再等一個星期才得到結果,可以嘗試選擇一個適中的學習速率(例如 0.1),
在同樣條件下嘗試幾種不同的速率值,就可以獲得比較好的速度和正確率了。除了設置
固定的學習速率之外,本書稍後還會介紹如何隨時間逐漸調整學習速率的做法,在速度
與正確性之間取得最佳的平衡。
正則化
「正則化(regularization)」的做法就是透過幾種不同的方法,最大程度減少參數大小,
以避免參數失控所造成的影響。
機器學習中過度套入的控制
正則化的主要目的,就是希望能控制機器學習中出現過度套入的情況。
在數學符號中,我們可以看到正則化是以係數 λ 來表示,它可以控制以下兩者之間的
平衡關係:一是找出良好的套入結果,二是當特徵權重值呈指數增加時,設法讓某些特
徵權重值保持在較低的程度。
正則化係數 L1 L2 可以讓某些權重值變得更小一點,有助於避免過度套入的情況。比
較小的權重值會導致比較簡單的假設,而比較簡單的假設就是比較具有通用性的假設。
如果在特徵集合中有好幾個高階多項式的非正規化權重,就容易會有過度套入訓練組資
料的傾向。
隨著輸入訓練組資料量的增加,正則化效應會隨之減小 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

高效能網站建置指南

高效能網站建置指南

Steve Souders
初探深度學習|使用TensorFlow

初探深度學習|使用TensorFlow

Reza Zadeh, Bharath Ramsundar
深度学习实战

深度学习实战

Douwe Osinga

Publisher Resources

ISBN: 9789865020262