Machine Learning For Everyone - in Simple Words. With Real-World Examples. Yes, Again PDF
Machine Learning For Everyone - in Simple Words. With Real-World Examples. Yes, Again PDF
Machine Learning For Everyone - in Simple Words. With Real-World Examples. Yes, Again PDF
Learning for Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Everyone
vas3k blog
https://vas3k.com/blog/machine_learning/ 1/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Let's roll.
❤ Support my work
https://vas3k.com/blog/machine_learning/ 2/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Billy, our brilliant analytic, starts seeing a pattern: so, the car
price depends on its age and drops $1,000 every year, but
won't get lower than $10,000.
Let's get back to cars. The problem is, they have different
manufacturing dates, dozens of options, technical condition,
seasonal demand spikes, and god only knows how many more
https://vas3k.com/blog/machine_learning/ 3/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
hidden factors. An average Billy can't keep all that data in his
head while calculating the price. Me too.
People are dumb and lazy – we need robots to do the maths for
them. So, let's go the computational way here. Let's provide
the machine some data and ask it to find all hidden patterns
related to price.
https://vas3k.com/blog/machine_learning/ 4/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Some smart asses like Google use their own customers to label
data for them for free. Remember ReCaptcha which forces you
to "Select all street signs"? That's exactly what they're doing.
Free labour! Nice. In their place, I'd start to show captcha
more and more. Oh, wait...
https://vas3k.com/blog/machine_learning/ 5/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
frequency in the text. In other words, these are the factors for
a machine to look at.
https://vas3k.com/blog/machine_learning/ 6/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Learning vs Intelligence
https://vas3k.com/blog/machine_learning/ 7/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 8/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
If you are too lazy for long reads, take a look at the picture
below to get some understanding.
https://vas3k.com/blog/machine_learning/ 9/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 10/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
The first methods came from pure statistics in the '50s. They
solved formal math tasks — searching for patterns in
numbers, evaluating the proximity of data points, and
calculating vectors' directions.
https://vas3k.com/blog/machine_learning/ 12/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 13/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Classification
https://vas3k.com/blog/machine_learning/ 14/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Using this data, we can teach the machine to find the patterns
and get the answer. There's no issue with getting an answer.
The issue is that the bank can't blindly trust the machine
answer. What if there's a system failure, hacker attack or a
quick fix from a drunk senior.
https://vas3k.com/blog/machine_learning/ 16/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
The two most popular algorithms for forming the trees are
CART and C4.5.
Pure decision trees are rarely used today. However, they often
set the basis for large systems, and their ensembles even work
better than neural networks. We'll talk about that later.
https://vas3k.com/blog/machine_learning/ 17/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
The idea behind SVM is simple – it's trying to draw two lines
between your data points with the largest margin between
them. Look at the picture:
The rule of thumb is the more complex the data, the more
complex the algorithm. For text, numbers, and tables, I'd
https://vas3k.com/blog/machine_learning/ 18/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Just five years ago you could find a face classifier built on SVM.
Today it's easier to choose from hundreds of pre-trained
networks. Nothing has changed for spam filters, though. They
are still written with SVM. And there's no good reason to
switch from it anywhere.
Regression
Medical diagnosis
https://vas3k.com/blog/machine_learning/ 20/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
If you want to get deeper into this, check these series: Machine
Learning for Humans. I really love and recommend it!
https://vas3k.com/blog/machine_learning/ 21/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 22/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Clustering
Nowadays used:
https://vas3k.com/blog/machine_learning/ 23/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
K-means does not fit here, but DBSCAN can be helpful. Let's
say, our dots are people at the town square. Find any three
people standing close to each other and ask them to hold
https://vas3k.com/blog/machine_learning/ 25/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 26/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Dimensionality Reduction
(Generalization)
Recommender systems
(★)
Beautiful visualizations
Risk management
https://vas3k.com/blog/machine_learning/ 27/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 28/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Like, there are more tech terms in tech articles, for sure. The
names of politicians are mostly found in political news, etc.
Yes, we can just make clusters from all the words at the
articles, but we will lose all the important connections (for
example the same meaning of battery and accumulator in
different documents). LSA will handle it properly, that's why
its called "latent semantic".
https://vas3k.com/blog/machine_learning/ 29/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Nowadays is used:
https://vas3k.com/blog/machine_learning/ 30/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 31/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 32/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Self-driving cars
Robot vacuums
Games
Automating trading
https://vas3k.com/blog/machine_learning/ 33/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 35/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 36/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
More effective way here — to build a virtual city and let self-
driving car to learn all its tricks there first. That's exactly how
we train auto-pilots right now. Create a virtual city based on a
real map, populate with pedestrians and let the car learn to kill
as few people as possible. When the robot is reasonably
confident in this artificial GTA, it's freed to test in the real
streets. Fun!
https://vas3k.com/blog/machine_learning/ 37/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Computer vision
Object detection
However, the neural networks got all the hype today, while the
words like "boosting" or "bagging" are scarce hipsters on
TechCrunch.
You'll get even better results if you take the most unstable
algorithms that are predicting completely different results on
small noise in input data. Like Regression and Decision Trees.
These algorithms are so sensitive to even a single outlier in
input data to have models go mad.
https://vas3k.com/blog/machine_learning/ 39/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 40/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 41/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 42/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Nowadays there are three popular tools for boosting, you can
read a comparative report in CatBoost vs. LightGBM vs. XGBoost
https://vas3k.com/blog/machine_learning/ 43/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Replacement of all
algorithms above
Object identification on
photos and videos
Machine translation
https://vas3k.com/blog/machine_learning/ 44/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 45/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 47/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 49/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
you did activate here but you did a terrible job and everything
went south from here downwards, let's keep less attention to
this connection and more of that one, mkay?'.
A well trained neural network can fake the work of any of the
algorithms described in this chapter (and frequently works
more precisely). This universality is what made them widely
popular. Finally we have an architecture of human brain they
https://vas3k.com/blog/machine_learning/ 48/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Convolutional neural networks are all the rage right now. They
are used to search for objects on photos and in videos, face
recognition, style transfer, generating and enhancing images,
creating effects like slow-mo and improving image quality.
Nowadays CNNs are used in all the cases that involve pictures
and videos. Even in your iPhone several of these networks are
going through your nudes to detect objects in those. If there is
something to detect, heh.
First of all, if a cat had its ears down or turned away from the
camera: you are in trouble, the neural network won't see a
thing.
The first decision was simple: limit the neuron memory. Let's
say, to memorize no more than 5 recent results. But it broke
https://vas3k.com/blog/machine_learning/ 55/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Here we'll be helped by the fact that text, speech or music are
sequences. They consist of consecutive units like syllables.
They all sound unique but depend on previous ones. Lose this
connection and you get dubstep.
https://vas3k.com/blog/machine_learning/ 54/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 57/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 56/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 58/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
The main problem here is that the question "when will the
machines become smarter than us and enslave everyone?" is
initially wrong. There are too many hidden conditions in it.
That's wrong.
https://vas3k.com/blog/machine_learning/ 59/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Ok, multiply 1680 by 950 right now in your mind. I know you
won't even try, lazy bastards. But give you a calculator —
you'll do it in two seconds. Does this mean that the calculator
just expanded the capabilities of your brain?
https://vas3k.com/blog/machine_learning/ 60/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
Subscribe
https://vas3k.com/blog/machine_learning/ 61/62
6/27/2020 Machine Learning for Everyone :: In simple words. With real-world examples. Yes, again :: vas3k.com
https://vas3k.com/blog/machine_learning/ 62/62