Skip to Content
精通機器學習
book

精通機器學習

by Aurélien Géron
April 2020
Intermediate to advanced
816 pages
18h 32m
Chinese
GoTop Information, Inc.
Content preview from 精通機器學習
習題
|
363
藉著這些指南
你現在就可以訓練很深的網路了
希望你已經相信只要使用
Keras
就可以
做很多事情了
不過有時你需要控制更多細節
例如
編寫自己的
loss
函數
或調整訓練
演算法
此時
你就要使用
TensorFlow
的低階
API
下一章將會介紹這個主題
習題
1. 「我們可以將所有權重的初始值都設為同一個值,只要那個值是用 He 初始化來隨機
選擇的就可以了」這句話對嗎?
2. 你可以將偏差項的初始值設為 0 嗎?
3. 指出三個 SELU 觸發函數優於 ReLU 之處。
4. 在什麼情況下,你會使用下面的觸發函數:SELUleaky ReLU(和它的變體)、
ReLUtanhlogistic softmax
5. 在使用
SGD
優化法時,將
momentum
超參數設為太接近 1(例如 0.99999)可能會怎
樣?
6. 指出三種製作稀疏模型的方式。
7. dropout 會降低訓練速度嗎?它降低推理(也就是對新實例進行預測)速度嗎? MC
Dropout 呢?
8. 練習用 CIFAR10 圖像資料組來訓練一個深度神經網路:
a. 建立一個有 20 個隱藏層,每層有 100 個神經元的 DNN(神經元的數量很多,但
這是這個練習的重點)。使用 He 初始化和 ELU 觸發函數。
b. 使用 Nadam 優化和提前停止,用 CIFAR10 資料組來訓練網路。你可以用
keras.
datasets.cifar10.load_data()
來載入它。這個資料組是 60,000 ...
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

下一代空间计算:AR与VR创新理论与实践

下一代空间计算:AR与VR创新理论与实践

Erin Pangilinan, Steve Lukas, Vasanth Mohan
C语言核心技术(原书第2版)

C语言核心技术(原书第2版)

Peter Prinz, Tony Crawford

Publisher Resources

ISBN: 9789865024345