Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
機器學習超入門
Search
Hai Feng Kao
May 18, 2018
Programming
0
160
機器學習超入門
介紹Naive Bayes演算法
Hai Feng Kao
May 18, 2018
Tweet
Share
More Decks by Hai Feng Kao
See All by Hai Feng Kao
模組化的Swift架構(一) Redux入門
haifengkao
0
120
模組化的Swift架構(二) DDD速成
haifengkao
0
720
日常生活中的腦殘
haifengkao
0
260
UICollectionView自動布局
haifengkao
1
420
宅宅設計入門2
haifengkao
2
250
宅宅設計入門
haifengkao
5
300
Other Decks in Programming
See All in Programming
Git Lint
bkuhlmann
4
750
『Railsオワコン』と言われる時代に、なぜブルーモ証券はRailsを選ぶのか
free_world21
0
180
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
110
PHPはいつから死んでいるかの調査
chiroruxx
1
400
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
Prepare for Jakarta EE 11 - Performance and Developer Productivity
ivargrimstad
0
780
効率化に挑戦してみたらモバイル開発が少し快適になった話
ryunakayama
0
130
冗長なエラーログを削減し、スタックトレースを手に入れる / Reducing Verbose Error Logs and Obtaining Stack Traces
upamune
0
560
Random\Randomizer クラスで日常のあれこれを解決しよう! / Random\Randomizer class solves familiar trouble
cocoeyes02
0
240
スキーマ駆動開発による品質とスピードの両立 - 私達は何故、スキーマを書くのか
kentaroutakeda
0
170
Apache Hive 4 on Treasure Data
ryukobayashi
0
290
Git Rebase
bkuhlmann
11
1.6k
Featured
See All Featured
YesSQL, Process and Tooling at Scale
rocio
164
13k
The Invisible Side of Design
smashingmag
294
49k
Building Adaptive Systems
keathley
31
1.9k
[RailsConf 2023] Rails as a piece of cake
palkan
23
3.9k
Design by the Numbers
sachag
274
18k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
78
42k
Creatively Recalculating Your Daily Design Routine
revolveconf
210
11k
The MySQL Ecosystem @ GitHub 2015
samlambert
243
12k
Automating Front-end Workflow
addyosmani
1356
200k
Stop Working from a Prison Cell
hatefulcrawdad
266
19k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
17
1.4k
Transcript
機器學習超入⾨門—Naive Bayes Hai Feng Kao iOS@Taipei 2018/5/15
None
None
None
Naive Bayes
Naive Bayes
None
Bayes • 反:是反社會⼈人格 • 嘴:會說話 • ⽯石:鐵⽯石⼼心腸 • P(反、嘴、⽯石) •
= P(反|嘴、⽯石) *P(嘴、⽯石) • = P(嘴、⽯石|反)*P(反) • = P(嘴|⽯石、反)*P(⽯石|反)*P(反) Naive Bayes • 假設反和嘴是獨立事件 • P(反、嘴、⽯石) • = P(嘴|反)*P(⽯石|反)*P(反) • 我們想知道⼀一個會說話⼜又鐵⽯石⼼心 腸的⼈人是不是反社會⼈人格 • P(反|嘴、⽯石) • = P(嘴|反)*P(⽯石|反)*P(反) / P(嘴、⽯石)
None
Independent Events • P(A, B) = P(A)*P(B)
範例例 • P(⽯石) = P(⽯石|正常⼈人) + P(⽯石|反) • =0.01 *
0.96 + 0.99 * 0.04 • = 0.0492 • P(反|⽯石) • = P(⽯石|反)*P(反) /P(⽯石) • = 0.99 * 0.04 / 0.0492 • = 0.804
範例例 • 把會不會說話加進來來考慮 • P(反|嘴、⽯石) • = P(嘴|反)*P(⽯石|反)*P(反) / P(嘴、⽯石)
• = 0.99 * 0.99 * 0.04 / P(嘴、⽯石)
範例例 • 假設有30%的正常⼈人也很會說話 • P(正常⼈人|嘴、⽯石) • = P(嘴|正)*P(⽯石|正)*P(正) / P(嘴、
⽯石) • = 0.3 * 0.01 * 0.96 / P(嘴、⽯石) • 因為P(正常⼈人|嘴、⽯石) + P(反|嘴、⽯石) = 1.0 • P(嘴、⽯石) = 0.3 * 0.01 * 0.96 + 0.99 * 0.99 * 0.04 = 0.042 • P(反|嘴、⽯石) = 0.99 * 0.99 * 0.04 / 0.042 = 0.91
Bayesian Network • 如果變數之間有相關性
Bayesian Network • 只要少量量的資料就可以建立模型 • 數字有意義,可以檢查那部分的 數字不對
Deep Learning • 需要⼤大量量的訓練資料 • 不知道數字代表什什麼
未解的問題 • 可以結合⼆二種⽅方法,得到⼀一個可 以理理解的模型嗎?