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 深度學習|內行人的做法
158
|
第四章:深度網路的主要架構
輸入向量的每個特徵欄位,並不一定在每個時間步驟都有對應的值,尤其是當我們把帶
有描述符(descriptor)的資料(例如取自靜態資料庫中某些欄位的資料)與時間序列
資料(例如每分鐘量測一次的加護病房患者心率資料)混合在一起使用的情況。針對這
種時間步驟相應值「不整齊(jagged)」的情況,我們就需要使用
遮罩
(
masking
)的做
法,讓 DL4J 知道向量中哪些位置的值才是真實的資料。為了達到此目的,我們提供一
個額外的矩陣做為遮罩,把輸入向量中至少有一個特徵欄位含有資料的時間步驟特別標
示出來,如圖 4-19 中所示。
輸入遮罩
(只針對時間步驟)
單一輸入
(欄位 + 時間步驟)
圖 4-19 運用遮罩把特定時間步驟標示出來
第 3 章提供了真正的程式碼範例,其中就顯示了這些遮罩的設置方式。
為什麼不用馬可夫模型?
在處理模型中的時間維度時,我們很自然就會想到「馬可夫模型(Markov model,
https://en.wikipedia.org/wiki/Hidden_Markov_model
)」這個選項。馬可夫模型是另一種類
型的機器學習模型,它已被廣泛運用於序列的模型化。馬可夫模型的限制因素在於,隨
著其前後文窗口的增大,最終這類模型在計算上對遠距相關性的模型化會變得很不切
實際。
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