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 深度學習|內行人的做法
322
|
第七章:特定深度網路架構的調整
卷積層序列中並沒有魔法子彈
在撰寫本文時,並不存在一種具有魔力的卷積架構,可以完全適用於所有
圖片模型化問題。我們建議可以先從一些已知的成功架構開始進行嘗試,
例如 LeNetVGGNetInception
2
AlexNet,試著把它套用到你想要解
決的問題中。你可以把已知的架構當成一個「好的開始」,試著調整各層
的配置與超參數,做為嘗試的起點。
最後我們的輸出層,則會依循 6 所呈現的模式。
設置卷積層
我們必須要設置卷積層的空間排列,然後選擇過濾器的數量。
在卷積層中設定超參數時,就必須決定輸出立方體中有多少個神經元,以及神經元排列
的方式。這裡就是一些關鍵的超參數:
過濾器大小(filter size
步幅(stride
填充(padding
舉例來說,如果我們想要構建出帶有一些 5 × 5 過濾器的一個卷積層,程式碼看起來很
可能就類似下面這樣:
ConvolutionLayer convLayer = new ConvolutionLayer.Builder()
.kernelSize(5,5).stride(1,1).padding(2,2)
.name("first_layer")
.nOut(out)
.biasInit(bias)
.build();
在這個範例中,我們可以看到過濾器大小(
.kernelSize
)是 5 × 5,而且我們採用(1,1
的步幅以及(2,2)的填充,這裡全都是採用整數的參數。我們使用
.name() ...
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