Grokking Algorithms



Download 6,4 Mb.
Pdf ko'rish
bet97/120
Sana21.12.2022
Hajmi6,4 Mb.
#893167
1   ...   93   94   95   96   97   98   99   100   ...   120
Bog'liq
Grokking Algorithms An Illustrated Guide for Programmers and Other

Building a spam ilter
Spam ilters use another simple algorithm called the 
Naive Bayes 
classiier
. First, you train your Naive Bayes classiier on some data.
Suppose you get an email with the subject “collect your million dollars 
now!” Is it spam? You can break this sentence into words. hen, for 
each word, see what the probability is for that word to show up in a 
spam email. For example, in this very simple model, the word 
million
only appears in spam emails. Naive Bayes igures out the probability 
that something is likely to be spam. It has applications similar to KNN. 


201
Introduction to machine learning
For example, you could use Naive Bayes to categorize fruit: you have 
a fruit that’s big and red. What’s the probability that it’s a grapefruit? 
It’s another simple algorithm that’s fairly efective. We love those 
algorithms!
Predicting the stock market
Here’s something that’s hard to do with machine learning: really 
predicting whether the stock market will go up or down. How do 
you pick good features in a stock market? Suppose you say that if the 
stock went up yesterday, it will go up today. Is that a good feature? Or 
suppose you say that the stock will always go down in May. Will that 
wor
k? here’s no guaranteed way to use past numbers to predict future 
performance. Predicting the future is hard, and it’s almost impossible 
when there are so many variables involved.
Recap
I hope this gives you an idea of all the diferent things you can do with 
KNN and with machine learning! Machine learning is an interesting 
ield that you can go pretty deep into if you decide to:
• KNN is used for classiication and regression and involves looking
at the k-nearest neighbors.
• Classiication = categorization into a group.
• Regression = predicting a response (like a number).


202

Download 6,4 Mb.

Do'stlaringiz bilan baham:
1   ...   93   94   95   96   97   98   99   100   ...   120




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish