Professional Documents
Culture Documents
Intro To ML v4 2 Lyst2292 PDF
Intro To ML v4 2 Lyst2292 PDF
Predictions Predicting
Laying down using the Question
classes for Simplify data
the foundation simple yet based
events using to lower
for Machine powerful linear approach to
probability of dimensions
learning regression prediction
odds
algorithm
Takeaways from this Track(Machine Learning)
John navigates to
amazon from the
search results
Extracting meaningful
patterns from
humongous data is a
difficult task for humans
Tedious task for humans made easier by Machines
Learned enough
to play chess with
Vishwanathan
Anand!
Journey of Machine learning
Timeline of Machine learning
David Rumelhart
introduces Neural
network models IBM’s Watson won a
for machine game of the US quiz AlphaGo beats
learning show Jeopardy the world
against two of its champion at Go
The Turing Test champions.
The term ‘Artificial Deep Blue
intelligence’ coined by defeats reigning
Development of
John McCarthy world chess
Statistical methods
champion
Statistics Computers AI Neural networks IBM Watson triumphs AlphaGo beats world
over humans champion
If Machine learning has been there for last few
decades, why is it popular now?
Why is Machine Learning a rage now : Data Availability
07
Let’s compare between Traditional programming
and Machine Learning..
Pros and Cons of Traditional programming
Pros Cons
• Easier to read and • Rule based systems
understand • Fails in many outside
• Error analysis is test scenarios
simpler • Hard coding becomes
difficult for
humongous data
Traditional Programming vs Machine Learning
07
Let’s go for mango shopping in the traditional
way…
Choosing the right mango for the first time
Rule 1: Bright
yellow mangoes
are sweeter than
pale yellow ones.
John visits the fruit shop, and buys mangoes that are bright yellow in color remembering his grandma's
instruction.
07
Rule changes as Grandma’s advice is insufficient
John reaches home after tasting realizes that not all bright yellow
mangoes are sweet. He concludes
Rule 2: big bright yellow mangoes are sweeter than small bright
yellow mangoes.
sweeter than
07
Buying mangoes from a different country
07
Machine learning comes to our rescue…
In machine learning, Data is fed into the system and rules are
extracted from the data.
07
How does Machine Learning work?
Model
Feed Data
Produces a
model with
Machine learning same rules
algorithm automatically
rather than
manually
New Data
Predicts
sweet, ripe
Model
or juicy
07
Top Machine learning terminologies to start
with…
Term 1: Features
The number of distinct traits that can be used to describe each item in a quantitative manner.
Which part
Which
Color Size Shape of the Taste
vendor
country
Which part
Which
Color Size Shape of the Taste
vendor
country
Feature vector-
[Yellow,Big,Oval,Local,Amritsar,Ripe]
Term 4: Feature Extraction
•Preparation of feature vector
•Transforms the data from high-dimensional space to a space of fewer dimensions.
.
Which part
Which
Color Size Shape of the
vendor
country
Mango 1 Yellow Big Oval Local Amritsar
Mango 2 Green Small Round Foreign England
Mango 3 Yellow Small Round Local Amritsar
Transforming 5D to 1D
Which part
Which
Color Size Shape of the Taste
vendor
country
Test Data
Predictions are
produced using the
model
Term 7: Scoring
Evaluating the performance of a machine learning based on any statistical metric.
.
.
Accuracy
General Machine Learning process flow
Learning
Training Produce a Model
Algorithm
Data
Data
Model Data
Make Predictions
Build intelligent
applications
Recommendations by online retailers
Machine learning in Social media applications
DeepFace can recognize the differences in human faces with a 97.25% degree of
accuracy – only 0.28% less than an actual human being.
Fraud detection in banking
Machine Learning in Google search
In 2015, Google introduced RankBrain – a machine learning algorithm that
• Works out the intent behind a user’s search
• Offers user’s customized information on that particular topic.
Uber uses its machine learning platform Michelangelo to determine arrival times, pick-up locations,
and UberEATS' delivery estimations
How Machine learning drives big business benefits?
Emergence of machine Learning
Supervised
learning Unsupervised Reinforcement
learning learning
20
Supervised Learning: Learn from Examples
Supervised machine learning enables computers to learn from labeled data without being explicitly
programmed.
Known data
Model
New response
It’s an apple
Known response
New data 21
Unsupervised Learning: Uncover hidden patterns
Unsupervised learning draws inferences from data without labeled responses.
Model
21
Supervised vs Unsupervised Learning
Supervised Unsupervised
Reinforcement learning develops algorithms when in direct interaction with environment and tunes
itself from its mistakes using feedback.
Reinforced
response
Wrong! It’s Noted!
It’s a mango It’s an
an apple.
apple!
Input
Input
Types of problems solved through Machine learning
Regression Classification
Clustering
22
Types of problems solved through Machine learning
Regression Classification
Supervised
Learning
Clustering
22
An example illustrating regression
A study is conducted by Stanford University in order to understand how the number of years of
higher education affect the annual income of their graduated students.
Will bank
approve loan or
not?
Yes No
Types of Problems solved through Machine learning
Regression Classification
Clustering
Unsupervised
Learning
22
Clustering topics in Google news
Model Gathering
Evaluation Data
Choose a
model
23
Step 1: Model objective
Fish Bird
Mammals
23
Step 2: Gathering Data
Animal name feathers airborne aquatic toothed backbone breathes venomous fins legs tail class type
dogfish 0 0 1 1 1 0 0 1 0 1 Fish
dolphin 0 0 1 1 1 1 0 1 0 1 Mammal
dove 1 1 0 0 1 1 0 0 2 1 Bird
duck 1 1 1 0 1 1 0 0 2 1 Bird
elephant 0 0 0 0 1 1 0 0 4 1 Mammal
flamingo 1 1 0 0 1 1 0 0 2 1 Bird
23
Step 3: Data Pre processing
Animal name feathers airborne aquatic toothed backbone breathes venomous fins legs tail class type
dogfish 0 0 1 1 1 0 0 1 0 1 Fish
dolphin 0 0 1 1 1 1 0 1 0 1 Mammal
dove 1 1 0 0 1 1 0 0 2 1 Bird
duck 1 1 1 0 1 1 0 0 2 1 Bird
elephant 0 0 0 0 1 1 0 0 4 1 Mammal
flamingo 1 1 0 0 1 1 0 0 2 1 Bird
Animal name feathers airborne aquatic toothed breathes fins legs class type
dogfish 0 0 1 1 0 1 0 Fish
dolphin 0 0 1 1 1 1 0 Mammal
dove 1 1 0 0 1 0 2 Bird
duck 1 1 1 0 1 0 2 Bird
elephant 0 0 0 0 1 0 4 Mammal
flamingo 1 1 0 0 1 0 2 Bird
Animal name feathers airborne aquatic toothed breathes fins legs class type
dogfish 0 0 1 1 0 1 0 Fish
dolphin 0 0 1 1 1 1 0 Mammal
dove 1 1 0 0 1 0 2 Bird
duck 1 1 1 0 1 0 2 Bird
elephant 0 0 0 0 1 0 4 Mammal
flamingo 1 1 0 0 1 0 2 Bird
Produce a
Test Data
Model
Feed training
data
Training Data
23
Step 6: Model Evaluation
Predict unknown test data using trained model and check if predictions are correct.
Model
Predictions
Mammal
Feed test data
Bird
Recap
Machine
learning
Workflow