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 深度學習|內行人的做法
正則化方法
|
299
正則化會透過不同方式來防止參數值變得過大,從而提供更有效率的模型表達方式。尋
找正則化設定值的正確組合,通常是透過人工方式調整完成的,不過也可以透過「隨機
搜索」或「地毯式搜索」的方式來完成這方面的工作。我們在下一節將簡要總結每一種
正則化方法,及其對整體訓練過程的影響。
在前正則化器
套用「在前函數(prior function)」是參數向量正則化常用的機器學習技術。權重衰減通
常就是利用像 L1 或 L2 這些在前正則化函數來執行的。在某些情況下,把這些函數結合
使用
25
,對深度網路來說也是很常見的做法。表 6-8 顯示的是,我們所要模型化的輸入
資料屬於何種型態,就可以決定我們應該使用的是哪一種在前函數。
表 6-8 在前函數適用情況總結
在前函數名稱 適用情況
L1 稀疏(sparse)模型
L2 稠密(dense)模型
我們在一些文獻中也可以看到 L1 與 L2 正則化器同時使用的情況,其中每個函數都有各
自的設定值。如果我們使用了「提早終止(early stopping)」的做法,可能就完全不要
再使用 L2 正則化了,因為提早終止的做法與 L2 具有相同的機制,而且提早終止的做法
還比較有效率
26
。L1 正則化一直以來都是一種很有用的特徵選擇形式。
在實務中,L2 正則化更常被使用。以下是 L1 與 L2 相互比較與對照的幾種方式:
• L2 對於大權重的懲罰更嚴重,但不會把小權重值推往 0 值。
• L1 對於大權重的懲罰比較少,但會導致許多權重值被推往 0 值(或非常接近 ...
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

精實企業|高績效組織如何達成創新規模化

精實企業|高績效組織如何達成創新規模化

Jez Humble, Joanne Molesky, Barry O'Reilly
机器学习和AI精粹

机器学习和AI精粹

诺亚·吉夫特
初探深度學習|使用TensorFlow

初探深度學習|使用TensorFlow

Reza Zadeh, Bharath Ramsundar

Publisher Resources

ISBN: 9789865020262