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 深度學習|內行人的做法
激活函數
|
73
softmax 函數
softmax 函數是邏輯迴歸的一種通用化擴展,因為它可以應用於連續資料(而不只是二
元分類),而且可以包含多個決策邊界。它可以處理多標籤系統。softmax 函數應該是你
經常會在分類模型輸出層中看到的一種函數。
了解
Softmax
函數的輸出
softmax 激活函數會送出類別輸出的機率分佈,其中每個輸出類別彼此之
間全都是互斥的。
為了進一步說明 softmax 輸出層的構想以及使用方法,我們就來考慮兩個運用的例子。
如果我們有一個多類別模型化問題,但我們只關心這些類別中獲得最高分數的類別,
這時我們就可以使用 softmax 輸出層搭配
argmax()
函數,從所有類別中找出最高分數的
類別。
處理多種類別
如果我們希望每個輸出都能獲得多個類別的結果(例如「人 + 」),
不會在輸出層採用 softmax 函數。在這種情況下,我們會使用 S 型輸出
層,它會針對每個類別獨立提供一個機率值。
如果我們擁有大量的標籤(例如有好幾千個標籤),這種情況下我們就會使用所謂的
分層
softmax
激活函數(
hierarchical softmax
activation function)」, softmax
活函數的一種變形。這種變形的做法會把標籤分解為樹狀結構,並在樹的每個節點訓練
softmax 分類器,以指導分類器進行分類。
整流線性函數
整流線性(rectified linear)函數是一種更有趣的轉換方式,唯有當輸入值超過一定大小
時才會激活節點。當輸入低於零時,輸出為零 ...
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