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
180
機器學習超入門
介紹Naive Bayes演算法
Hai Feng Kao
May 18, 2018
Tweet
Share
More Decks by Hai Feng Kao
See All by Hai Feng Kao
物件導向的文藝復興:用DCI重塑程式設計的藝術
haifengkao
0
140
模組化的Swift架構(一) Redux入門
haifengkao
0
150
模組化的Swift架構(二) DDD速成
haifengkao
0
870
日常生活中的腦殘
haifengkao
0
280
UICollectionView自動布局
haifengkao
1
460
宅宅設計入門2
haifengkao
2
300
宅宅設計入門
haifengkao
5
320
Other Decks in Programming
See All in Programming
ThorVG Viewer In VS Code
nors
0
540
PostgreSQLで手軽にDuckDBを使う!DuckDB&pg_duckdb入門/osc25hi-duckdb
takahashiikki
0
230
2年のAppleウォレットパス開発の振り返り
muno92
PRO
0
180
Go コードベースの構成と AI コンテキスト定義
andpad
0
150
AIで開発はどれくらい加速したのか?AIエージェントによるコード生成を、現場の評価と研究開発の評価の両面からdeep diveしてみる
daisuketakeda
1
330
perlをWebAssembly上で動かすと何が嬉しいの??? / Where does Perl-on-Wasm actually make sense?
mackee
0
290
CSC307 Lecture 01
javiergs
PRO
0
650
GoLab2025 Recap
kuro_kurorrr
0
1.1k
Cell-Based Architecture
larchanjo
0
160
DevFest Android in Korea 2025 - 개발자 커뮤니티를 통해 얻는 가치
wisemuji
0
180
メルカリのリーダビリティチームが取り組む、AI時代のスケーラブルな品質文化
cloverrose
2
450
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2k
Featured
See All Featured
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
110
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
690
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
360
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
190
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
180
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
How to make the Groovebox
asonas
2
1.9k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
Crafting Experiences
bethany
0
25
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 • 需要⼤大量量的訓練資料 • 不知道數字代表什什麼
未解的問題 • 可以結合⼆二種⽅方法,得到⼀一個可 以理理解的模型嗎?