Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
機器學習超入門
Search
Hai Feng Kao
May 18, 2018
Programming
210
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
機器學習超入門
介紹Naive Bayes演算法
Hai Feng Kao
May 18, 2018
Transcript
17 slides
機器學習超入⾨門—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 • 需要⼤大量量的訓練資料 • 不知道數字代表什什麼
未解的問題 • 可以結合⼆二種⽅方法,得到⼀一個可 以理理解的模型嗎?
More Decks by Hai Feng Kao
See All by Hai Feng Kao
物件導向的文藝復興:用DCI重塑程式設計的藝術
haifengkao
0
220
模組化的Swift架構(一) Redux入門
haifengkao
0
190
模組化的Swift架構(二) DDD速成
haifengkao
0
970
日常生活中的腦殘
haifengkao
0
290
UICollectionView自動布局
haifengkao
1
500
宅宅設計入門2
haifengkao
2
330
宅宅設計入門
haifengkao
5
360
Other Decks in Programming
See All in Programming
SODA - FACT BOOK(EN)
sodainc
1
280
眠らない開発チームの作り方
biwakonbu
0
110
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
130
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
630
TS 7.0 で baseUrl が使えなくなった今、パスエイリアスをどうするか
bicstone
2
820
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6.2k
SODA - FACT BOOK(JP)
sodainc
1
40k
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
210
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
500
高速開発を止めずに 性能を上げる Flyleのシステム刷新と改善の歴史
azihsoyn
0
110
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
Featured
See All Featured
Highjacked: Video Game Concept Design
rkendrick25
PRO
2
600
Raft: Consensus for Rubyists
vanstee
143
7.9k
Well, that’s weird…
csswizardry
1
210
Unsuck your backbone
ammeep
672
58k
ラッコキーワード サービス紹介資料
rakko
5
6M
HDC tutorial
michielstock
2
1k
It's Worth the Effort
3n
188
30k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
750
Embracing the Ebb and Flow
colly
88
5.2k
Writing Fast Ruby
sferik
630
63k
Ethics towards AI in product and experience design
skipperchong
2
470
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
48k