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
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
機器學習超入門
介紹Naive Bayes演算法
Hai Feng Kao
May 18, 2018
More Decks by Hai Feng Kao
See All by Hai Feng Kao
物件導向的文藝復興:用DCI重塑程式設計的藝術
haifengkao
0
180
模組化的Swift架構(一) Redux入門
haifengkao
0
160
模組化的Swift架構(二) DDD速成
haifengkao
0
910
日常生活中的腦殘
haifengkao
0
290
UICollectionView自動布局
haifengkao
1
470
宅宅設計入門2
haifengkao
2
310
宅宅設計入門
haifengkao
5
330
Other Decks in Programming
See All in Programming
セキュリティの専門家じゃなくてもできる。「セキュリティ意識」をアップデートして サプライチェーン攻撃への耐性を高めよう。
tk3fftk
5
720
These Five Tricks Can Make Your Apps Greener, Cheaper, & Nicer
hollycummins
0
280
ADKを使って簡単にAIエージェントを作ってみよう
k1mu21
0
260
ふつうのFeature Flag実践入門
irof
7
3.7k
依存関係から依存物へ―Dependencyという言葉の歴史をひも解く
j_lee
0
110
「なぜそう決めたのか」を残し続ける仕組み ― Notion AI カスタムエージェント × Slack連携による設計判断の自動記録 - NIKKEI Tech Talk #47
niftycorp
PRO
0
120
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
120
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.3k
Vue × Nuxt × Oxc どこまで使える?実運用の現在地
andpad
0
220
net-httpのHTTP/2対応について
naruse
0
470
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
7
2.3k
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.2k
Featured
See All Featured
30 Presentation Tips
portentint
PRO
1
320
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
200
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2k
A Modern Web Designer's Workflow
chriscoyier
698
190k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
730
Prompt Engineering for Job Search
mfonobong
0
340
Game over? The fight for quality and originality in the time of robots
wayneb77
1
200
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
170
Technical Leadership for Architectural Decision Making
baasie
3
400
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
10k
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 • 需要⼤大量量的訓練資料 • 不知道數字代表什什麼
未解的問題 • 可以結合⼆二種⽅方法,得到⼀一個可 以理理解的模型嗎?