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 深度學習|內行人的做法
296
|
第六章:深度網路的調整
進一步加速這些計算,我們創建了 ND4J,使向量化這類的線性代數運算,可以在不同
系統與不同 GPU 執行環境之間輕鬆進行轉移。
ND4J
:一個具有自動適應能力的執行引擎
一開始打造 DL4J 時的構想,就已經考慮過要在 CPUGPU 或平行
運算框架上運行的不同情況。在使用具有可切換(swappable)能力
ND4J 後端時,你就會發現它具有相當大的彈性,在執行階段時可
以給你很多的選項。
如果想要了解如何把 GPU 設為 ND4J 後端,更多相關訊息請參閱
E
小批量數量與訓練階段的控制
我們在 2 介紹過小批量(mini-batch)的概念。把訓練輸入資料集分成小批量的做
法,已被證明可以讓網路的訓練更有效率。所謂的一個小批量,其中所包含的資料數
量,有可能只有 10 個輸入向量,也有可能包含整個輸入資料集。
這種方法還可以讓我們以向量化的方式,計算某些線性代數運算(特別是矩陣對矩陣
的乘法)。在這樣的應用情況下,我們可以選擇把向量化計算發送給 GPU(如果存在
的話)。
以下是關於如何控制訓練的一些關鍵術語:
階段
Epoch
一個階段代表的是遍歷過整個輸入資料集的過程。在找出訓練收斂的結果之前,資
料集有可能會經歷過好幾個階段的好多次訓練。
小批量數量
小批量數量指的是我們同時送進學習演算法中的資料(或向量)數量。這種做法與
我們一次只送進一筆輸入資料進行訓練的做法正好可形成對比。
批量大小與演算法學習速度兩者之間,通常是 U 形的關係(批量大小與訓練速度) ...
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