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 深度學習|內行人的做法
76
|
第二章:神經網路和深度學習基礎
損失函數
損失函數的用處,就是在神經網路接受訓練時,用來衡量網路輸出與理想結果之間的距
離。這個想法其實很簡單。我們會根據網路所預測的輸出結果,計算出一個誤差衡量
值。接著我們把整組資料的誤差取平均,就可以得出足以代表神經網路與其理想有多接
近的一個數字了。
追求這種理想的狀態,其實就等同於想要找出一組參數(權重值和偏差值),以最大程
度降低誤差所造成的「損失」。損失函數透過這種方式,就可以把神經網路訓練轉變成
一種最佳化問題。大多數情況下,這些參數往往無法以解析的方式求解,但只要透過梯
度遞減這類迭代式的最佳化演算法,就可以取得很好的近似結果。下一節我們會概略檢
視一下各種常見的損失函數,並視情況藉由這些函數回顧機器學習的起源。
損失函數所用到的符號
本節的方程式會使用到這裡所描述的一些符號:
• 我們考慮的是用於訓練神經網路所收集的整組資料集。假設 N 代表已收集樣本(包
含有相應結果的一組輸入資料)的數量。
• 我們也要考慮所收集輸入資料與輸出資料本身的性質。每一筆資料都記錄著一組獨
特的輸入特徵和輸出特徵。假設 P 代表的是所收集輸入特徵的數量,M 則代表所觀
察到輸出特徵的數量。
• 我們會使用 (X,Y) 來表示所收集到的輸入和輸出資料。請注意,總共會有 N 個這樣
的成對資料,其中輸入資料含有 P 個值,輸出資料 Y 則含有 M 個值。我們會把資料
集的第 i 對資料,用 X
i
和 Y
i
來表示。
• 我們會使用
• Consider the nature of ...
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