SlideShare a Scribd company logo
1 of 186
Primer to Machine
Learning
or How to get Machines to Think
Jeff Tanner, Engineer @ TUNE
Take Away from this Talk:
What underlies Machine Learning
by explaining how it Learns.
Why this talk?
Why?: Curiosity
1.Math driven education Physics and
Applied Mathematics
2.first love of application programming
was Artifical Intelligence and Neural
Nets
3. unsatiated Curiosity to understand
Machine Learning
Graduate and Postgraduate:
Artificial Intelligence
International consultant:
Knowledge Engineering
Bright idea #1
Learn more about
Machine Learning
Satisfy Curiosity
(and perform upon functional
test on rebooted brain)
Read lots and Watched lots (repeat many
times)
Siraj RavalAndrew Ng
Bright idea #2
Eager to Share Curiosity
Lecture
Topics:
● What is it?
● What can it do?
● Explain pipeline?
● Data
● Types
● Algorithms
● Shallow dive
Code:
● Breakout to checkout:
○ Python Scikit-Learn
○ GNU Octave (MatLab)
○ R Programming
https://github.com/jefftune/gitw-2017-ml
What is Machine Learning?
What is Machine Learning?
Learn from Experience
People
Learn from Experience Follow instructions
People Traditional Programming
Models
What is Machine Learning?
Learn from Experience Follow instructions Learn from Data
People Machine Learning
Models
Traditional Programming
Models
What is Machine Learning?
Machine Learning is an artificial
intelligence technology
learning over time in an
autonomous fashion
without being explicitly
programmed
What Machine
Learning Can Do:
● Data Modeling
● Classification
● Value Prediction
● Serving Content
● Pattern
Recognition
What Machine
Learning Cannot Do:
● Clean the Data
● Leap Over
Pareto’s
Principle
Relationship: AI, ML, and DL
Statistical Learning
underlies Machine Learning
● Mechanophobia (fear of machines)
● Sophophobia (fear of learning)
● Mechano-Sophophobia?
Still scared of
Machine Learning?
● Easy to believe that ML is hard.
● Embrace predictions.
Defining “Learning” of Machines
1959, Arthur Samuel
Machine learning is the practice of
giving computers the ability to learn
without being explicitly programmed
to do so.
1997, Tom Mitchell
A computer program is said to learn from
experience E with respect to some class of
tasks T and performance measure P.
E * T = P
Learning
Algorithm
Cat / Not Cat Cat: 80%
this is a cat
E
Training
Prediction
T P
Model
E * T = P
Checkers:
E * T = P
E: practice
T: playing
P: % won
Handwriting:
E * T = P
E: handwritten
words
T: classifying
words
P: % words
Self-Driving:
E * T = P
E: observe human
driver
T: drive
P: % human judged
error
Using to Machine Learning
Algorithms
Supervised: Predict Value
Profitin$10,000
Population in 10,000
Profitability
Supervised: Classification
Exam2score
Exam 1 score
Unsupervised: Clusters
Customer Segmentation
Reinforcement: Bot Conversation Example
Charlotte BrontëThomas Holcroft
Christopher Marlowe
Awareness is like consciousness. Soul
is like spirit. But soft is not like
hard and weak is not like strong. A
mechanic can be both soft and hard, a
stewardess can be both weak and
strong. This is called philosophy or
a world-view.
BILL. I love a child.
MARCELLA. Children are fortunately captivating.
BILL. Yet my love is excellent.
MARCELLA. My love is spooky yet we must have a
child, a spooky child.
BILL. Do you follow me?
What is the Machine Learning
pipeline?
Machine Learning Pipeline
a framework
converting raw data to usable data
training an ML algorithm
deliver trained model
using model to perform actions
Training/Learning Phase
Real-Time Prediction Phase
Machine Learning Pipeline: Training Phase
Gather lots of Data, Prepare for Learning.
Machine Learning Pipeline: Training Phase
Training Data is passed to a Learning Algorithm, Create a Hypothesis,
check Cost against Weighted Errors.
Machine Learning Pipeline: Training Phase
Generate Model using the Hypothesis with the Least Weighted Errors.
Add Trained Model
The Phase of “Learning”
Training Phase Tools
Tool: R-Programming: Data and Feature
Engineering
Tool: GNU Octave: Algorithm Design
Tool: Python Scikit-Learn: ML Delivery
Fictional Prediction
discovered doing
Machine Learning
with R-Programming
Titanic Passengers List
Should Rose have stayed on the
lifeboat?
Titanic Passengers List
Jack had a higher
likelihood to survive if
Rose stayed on the
lifeboat and already
saved.
Jack (single)
Titanic Passengers List
Instead, an extra hour of
Jack and Rose running around
a sink ship, finalizing with
frozen Jack, and Rose saved
(again). Thanks Rose.
Jack (attached)
How is Data handling within the
Machine Learning pipeline?
Data Lexicon: Linear Algebra
Data Lexicon: Data Scientists
● Dataset is a Matrix of measures
or events.
● Measure has a set of useful
Features.
● Feature is either undefined or
has
a value from a normalized set.
● Dataset is a Matrix of measures or
events.
● Measure has a set of useful Features.
● Feature is either undefined or has
a value from a normalized set.
● Dataset is a Matrix of measures or
events.
● Measure has a set of useful Features.
● Feature is either undefined or has
a value from a normalized set.
Data Handling
Types of ML Algorithms
Types of Machine Learning
● Predictive Model, Labeled data
● Classification
● Numeric prediction
In supervised algorithms, you may not know the inner relations of the
data you are processing, but you do know very well which is the output
that you need from your model.
The training of the model usually uses part of the data to “learn”, and
part of the data to validate and measure how accurate the model is.
Types of Machine Learning
● Descriptive model, Unlabeled data
● Clustering
● Pattern discovery
With unsupervised algorithms, you still don’t know what you want to
get out of the model yet.
You probably suspect that there hast to be some kinds of relationships
or correlation between the data you have, but data is too complex to
try to guess.
Types of Machine Learning
● Rewards based modeling
Reinforcement learning is the field that studies the problems and
techniques that try to retro-feed it’s model in order to improve.
Relies on being able to monitor the response of the actions taken, and
measure against a definition of a “reward”.
Types of Machine Learning
● When Labelled Data is Costly
A class of supervised learning tasks and techniques that also make
use of unlabeled data for training.
Typically a small amount of labeled data with a large amount of
unlabeled data.
The Math of Intelligence
You do not need to know
the following to deliver
Machine Learning solutions
However…
If you truly want to understand or
create Machine “learning”
algorithms, then Math is helpful.
And…
Understanding the Math of
“learning” is
addictively fun,
Ask my spouse, or maybe not
These are the most important math concepts that underlie
Machine Learning and I will demonstrate where they are
applied to “Learning”.
Gradient Descent
Cross-Entropy Loss
Bayes’ Theorem
K-Means
Linear Regression
Calculus
Linear Algebra
Probability Theory
Statistics
And these math concepts are based upon
the fundamentals of ...
Basic Algebra
Have no fear!
Applied Mathematics breaks down
all Math behind Machine Learning to ...
This is
the Math of Intelligence
behind how
Machines learn from Data
Learning behind Supervised
Algorithms
Supervised: Linear Regression
regression models the past relationship
between variables to predict their future
behavior.
regression analysis is a set of statistical
processes for estimating the relationships
among variables.
from Statistical Learning, the underpinnings of ML
Example: Food truck Profit to Population Profitability
Profitin$10,000
Population in 10,000
As CEO of a restaurant
franchise and are considering
different cities for opening a
new outlet. The chain already
has food trucks in various cities
and you have data for Profits
and Populations from the
cities.
Food truck Profit to Population Profitability
Quiz: What would be the
approximate Profit if Food
Truck is located in City with
Population 150,000?
[ ] $50,000
[ ] $100,000
[ ] $150,000
[ ] $200,000
Profitin$10,000
Population in 10,000
Food truck Profit to Population Profitability
Quiz: What would be the
approximate Profit if Food
Truck is located in City with
Population 150,000?
[ ] $50,000
[ ] $100,000
[X] $150,000
[ ] $200,000
$138,000
Population in 10,000
Profitin$10,000
Food truck Profit to Population Profitability
Population in 10,000
Profitin$10,000
Linear Regression
Algorithm
finding the straight line that
best-fits the values of a linear
function, plotted on a scatter
graph as data points, used as
the basis for estimating the
future values.
Food truck Profit to Population Profitability
Population in 10,000
Profitin$10,000
linear regression line
● Data is Food Truck Profit to Population
● Algorithm for Training is using Linear Regression
● Model when Trained will values filled into this function:
Finding “Linear Regression Line”
An actual data point instance:
Finding “Linear Regression Line”
Provide a line of slope
and the line intersects axis
at location
And for a known data point
then y-intercept is for this line is
Finding “Linear Regression Line”
Finding “Linear Regression Line”
Finding “Linear Regression Line”
Finding “Linear Regression Line”
Finding “Linear Regression Line”
Finding “Linear Regression Line”
a.k.a Global Minimum
x : population
f(x) : predicted profit
Non-Linear or Polynomial Regression
Linear Regression Algorithm: Summary
Find the linear regression line that
best cuts the value data in two
in order to make the
best value prediction
with the
least possible error.
Supervised: Logistic Regression
University Admissions Acceptance
Using historical data from
previous applicants, predict
whether a student gets
admitted into a university
based upon the applicant’s
scores on two exams.
Exam2score
Exam 1 score
Admitted
Not-Admitted
University Admissions Acceptance
Exam2score
Exam 1 score
Admitted
Not-Admitted
Quiz: For a student with scores
for Exam 1 at 45 and Exam 2 at
85, does the get accepted?
[ ] Yes
[ ] No
University Admissions Acceptance
Exam2score
Exam 1 score
Quiz: For a student with scores
for Exam 1 at 45 and Exam 2 at
85, does the get accepted?
[X] Yes
[ ] No
We predict an admission with
confidence of 77.6289 %
University Admissions Acceptance
Exam2score
Exam 1 score
Logistic Regression
Algorithm
Predicts the probability that an
observation falls into one of two
categories of a dichotomous
dependent variable based on
one or more independent
variables.
● Data is University Admissions: Exam 1, Exam 2, Class: Admitted
● Algorithm for Training is using Logistic Regression
● Model when Trained will values filled into this function:
Logistic Regression Algorithm
It is an logistic regression model
where the dependent variable is
binary and categorical, that is,
where it can take only two values:
“0” OR “1”, representing for
example:
Yes or No
Accept or Not Accept
Cat or Dog
1
0
0.5
Logistic Regression Algorithm
Example:
Swallow: African OR European
Based on Airspeed velocity.
sigmoid
Logistic Regression Algorithm
“Exam 1” x1 “Exam 2” x2
Logistic Regression AlgorithmExam1Exam2
1
0
0.5
Logistic Regression Algorithm
prediction_start prediction_min
Logistic Regression Algorithm
Gradient Descent using Log-Loss
Log Loss quantifies
the accuracy of a
classifier by penalising
false classifications.
Logistic Regression Algorithm
x1, x2 : exams
f(x1, x2) : university acceptance
Logistic Regression Algorithm: Summary
Find the logistic regression line that
best cuts the classifications in two
in order to make the
best class decision
with the
least possible error.
Supervised: Neural Net
University Admissions AcceptanceExam2score
Exam 1 score
What if the admitted into a
university based upon the
applicant’s scores on two
exams was more restrictive?
Admitted
Not-Admitted
University Admissions AcceptanceExam2score
Exam 1 score
Admitted
Not-Admitted
And there were fewer actual
admissions in the historical
data.
University Admissions AcceptanceExam2score
Exam 1 score
Admitted
Not-Admitted
A single line will not cut the
data in two.
University Admissions AcceptanceExam2score
Exam 1 score
Admitted
Not-Admitted
Maybe a circle
Maybe two lines, which works
better. This solution requires
using
Neural Network
Algorithm
University Admissions AcceptanceExam2score
Exam 1 score
Neural Network Algorithm
Supervised: Decision Tree: Fruit
Determine Which Fruit
(4, 2)
['Weight (grams)', 'Texture']
['apple', 'orange']
Determine Which Fruit
Weight Texture Class
150g Bumpy Orange
170g Bumpy Orange
150g Smooth Apple
130g Smooth Apple
(4, 2)
['Weight (grams)',
'Texture']
['apple', 'orange']
Determine Which Fruit
Weight Texture Class
150g Bumpy Orange
170g Bumpy Orange
150g Smooth Apple
130g Smooth Apple
Quiz: Between Weight and
Texture, which seems more
decisive for predicting what
Fruit will be determined?
[ ] Weight
[ ] Texture
Determine Which Fruit
Weight Texture Class
150g Bumpy Orange
170g Bumpy Orange
150g Smooth Apple
130g Smooth Apple
Quiz: Between Weight and
Texture, which seems more
decisive for predicting what
Fruit will be determined?
[ ] Weight
[ ] Texture
Determine Which Fruit
Weight Texture Class
150g Bumpy Orange
170g Bumpy Orange
150g Smooth Apple
130g Smooth Apple
Quiz: Between Weight and
Texture, which seems more
decisive for predicting what
Fruit will be determined?
[ ] Weight
[ ] Texture
Determine Which Fruit
Weight Texture Class
150g Bumpy Orange
170g Bumpy Orange
150g Smooth Apple
130g Smooth Apple
Quiz: Between Weight and
Texture, which seems more
decisive for predicting what
Fruit will be determined?
[ ] Weight
[X] Texture
Determine Which Fruit
Weight Texture Class
150g Bumpy Orange
170g Bumpy Orange
150g Smooth Apple
130g Smooth Apple
Decision Tree Algorithm
Supervised: Decision Tree: Iris
Classification of Iris Varieties
Classification of Iris Varieties
(150, 4)
['sepal length (cm)', 'sepal width (cm)',
'petal length (cm)', 'petal width (cm)']
['setosa', 'versicolor', 'virginica']
[ 5.1 3.5 1.4 0.2]
setosa
Classification of Iris Varieties: Decision Tree
Classification of Iris Varieties: Decision Tree
Accuracy Score
0.911111111111
Accuracy Score
0.622222222222
Classification of Iris Varieties: Decision Tree
[2 0 0 0 0 0 0 0 0 1 0 0 0 1 1 2 0 0 0 2 2 0 2 2 1 1 2 1 1 0 1 0 1 2 0 1 2
0 2 2 0 1 2 2 1 1 2 2 1 2 2 2 0 0 1 1 1 1 1 1 2 1 2 2 0 0 2 0 2 2 0 2 1 0
2]
Predictions
[2 2 1 1 2 0 0 0 2 2 1 0 0 0 1 0 0 0 1 0 0 2 2 1 0 2 2 1 0 1 1 0 2 1 0 2 2
0 0 0 2 2 1 1 1 1 1 1 2 0 1 2 1 0 2 0 2 1 0 2 1 2 2 0 0 0 2 1 0 1 2 0 1 2
0]
Accuracy Score
0.96
Supervised: Random Forest
Classification of Iris Varieties: Random Forest
Classification of Iris Varieties: Random Forest
Accuracy Score
0.622222222222
Accuracy Score
0.955555555556
Classification of Iris Varieties: Random Forest
[2 1 0 2 0 2 0 1 1 1 2 1 1 1 1 0 1 1 0 0 2 1 0 0 2 0 0 1 1 0 2 1 0 2 2
1 0
1 1 1 2 0 2 0 0]
Predictions
[2 1 0 2 0 2 0 1 1 1 1 1 1 1 1 0 1 1 0 0 2 1 0 0 2 0 0 1 1 0 2 1 0 2 2
1 0
2 1 1 2 0 2 0 0]
Accuracy Score
0.955555555556
Supervised: Naive Bayes
Detecting Spam e-mails
Detecting Spam e-mails
100 emails looked at already
Detecting Spam e-mails
Spam Not-Spam
Detecting Spam e-mails
Spam Not-Spam
“Winner”
Detecting Spam e-mails
Spam Not-Spam
“Winner” Quiz: If an e-mail contains the
word “Winner”, what is the
Probability of being Spam?
[ ] 40%
[ ] 60%
[ ] 80%
Detecting Spam e-mails
Spam Not-Spam
“Winner” Quiz: If an e-mail contains the
word “Winner”, what is the
Probability of being Spam?
[ ] 40%
[ ] 60%
[ X ] 80%
Conclusion: If an e-mail
contains the word “Winner”,
then the Probability it being
Spam is 80%.
80 % 20 %
Detecting Spam e-mails
“Winner” 80 %
Spelling error 60 %
Missing title 90 %
etc....
Detecting Spam e-mails
“Winner” 80 %
Spelling error 60 %
Missing title 90 %
Naive Bayes Algorithm
Machine Learning Tools
Tools to build ML Learning Pipeline
Tools to build ML Learning Pipeline
Python has a rich set
of packages for
delivering Machine
Learning solutions.
Tools to build ML Learning Pipeline
GNU Octave is an open
source high-level
programming language
intended for numerical
computations.
Great for understanding
and defining Algorithms
within Machine Learning.Andrew Ng
Tools to build ML Learning Pipeline
R is an open source
programming language for
statistical computing and
graphics.
Faster in getting up to speed
with Machine Learning.
Great for in depth data analysis
and feature engineering.
Tools to build ML Learning Pipeline
Machine Learning Philosophy Machine Learning places a
greater emphasis on
predictive accuracy.
Scikit-learn focuses more
on helping you to
maximize the accuracy of
your models.
Tools to build ML Learning Pipeline
Statistical Learning Philosophy Statistical Learning emphasizes
model interpretability and
uncertainty.
R and GNU Octave tends to
offer more capabilities for
understanding your models and
data gathered.
Machine Learning Examples
Machine Learning Examples:
Jupyter Notebooks and Code Files
https://github.com/jefftune/gitw-2017-ml
Supervised: Naive Bayes
Machine Learning Examples
https://github.com/jefftune/gitw-2017-ml
Jupyter Notebooks with Examples:
Two end-to-end Solutions: Titanic Passengers
Food truck Profit to Population Profitability
University Admissions Acceptance
California Housing Prices
Iris Dataset
Decision Tree
Random Decision Forest
Determine Which Fruit
Off-Topic:
Computer Generated Novelette
"Mathew, where's the lamb chop?" whispered Helene.
"Lamb chops, you mean," sang Mathew; "you, me, Wendy, and
John can't all swallow one lamb chop."
"And Mark, he also desires lamb chops," said Wendy.
"Now wait," sang Mathew; "let's struggle to understand where
spooky old Mark is."
"Mark said that he was rambling over to eat with us," cried
Helene; "he's sashaying up some turnpike right now."
"Mark, oh, Mark, skip briskly; it would facilitate us to start bolting
our lamb chops speedily," chanted John carefully.
Meanwhile Mark winged in, whispering, "A supper, a breakfast,
a repast, quick; it can be tasty or well cooked or delicious; I
don't care; I'm hungrily famished. I've sauntered some clean
streets; I was thinking about yachts, the sea, and the ocean;
I'm exhausted."
"Yachts?" each of them said.
"Yes, yachts, a hoard of yachts floating on the sea. This yacht
pondering let me be unwound during my skip over here."
"Better yachts in the sea than a sickening electron in a
revolting galaxy," hummed Helene.
Steps of Training Predictive Modelling

More Related Content

What's hot

Machine learning and big data
Machine learning and big dataMachine learning and big data
Machine learning and big dataPoo Kuan Hoong
 
Machine Learning for Dummies (without mathematics)
Machine Learning for Dummies (without mathematics)Machine Learning for Dummies (without mathematics)
Machine Learning for Dummies (without mathematics)ActiveEon
 
A Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningA Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningHaptik
 
Making Machine Learning Work in Practice - StampedeCon 2014
Making Machine Learning Work in Practice - StampedeCon 2014Making Machine Learning Work in Practice - StampedeCon 2014
Making Machine Learning Work in Practice - StampedeCon 2014StampedeCon
 
Machine learning introduction
Machine learning introductionMachine learning introduction
Machine learning introductionAnas Jamil
 
Meetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo casesMeetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo casesZenodia Charpy
 
Machine learning module 2
Machine learning module 2Machine learning module 2
Machine learning module 2Gokulks007
 
[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016Grigoris C
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learningPruet Boonma
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learningGanesh Satpute
 
Simple overview of machine learning
Simple overview of machine learningSimple overview of machine learning
Simple overview of machine learningpriyadharshini R
 
What is Machine Learning?
What is Machine Learning?What is Machine Learning?
What is Machine Learning?SwiftKeyComms
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningJames Ward
 
Machine Learning Introduction
Machine Learning IntroductionMachine Learning Introduction
Machine Learning IntroductionPranav Prakash
 
Le Machine Learning de A à Z
Le Machine Learning de A à ZLe Machine Learning de A à Z
Le Machine Learning de A à ZAlexia Audevart
 

What's hot (20)

Machine learning and big data
Machine learning and big dataMachine learning and big data
Machine learning and big data
 
Machine Learning for Dummies (without mathematics)
Machine Learning for Dummies (without mathematics)Machine Learning for Dummies (without mathematics)
Machine Learning for Dummies (without mathematics)
 
A Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningA Friendly Introduction to Machine Learning
A Friendly Introduction to Machine Learning
 
Making Machine Learning Work in Practice - StampedeCon 2014
Making Machine Learning Work in Practice - StampedeCon 2014Making Machine Learning Work in Practice - StampedeCon 2014
Making Machine Learning Work in Practice - StampedeCon 2014
 
Machine learning introduction
Machine learning introductionMachine learning introduction
Machine learning introduction
 
Meetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo casesMeetup sthlm - introduction to Machine Learning with demo cases
Meetup sthlm - introduction to Machine Learning with demo cases
 
Managing machine learning
Managing machine learningManaging machine learning
Managing machine learning
 
Machine learning module 2
Machine learning module 2Machine learning module 2
Machine learning module 2
 
[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016[Eestec] Machine Learning online seminar 1, 12 2016
[Eestec] Machine Learning online seminar 1, 12 2016
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 
What is Machine Learning
What is Machine LearningWhat is Machine Learning
What is Machine Learning
 
Simple overview of machine learning
Simple overview of machine learningSimple overview of machine learning
Simple overview of machine learning
 
What is Machine Learning?
What is Machine Learning?What is Machine Learning?
What is Machine Learning?
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
Machine Learning Introduction
Machine Learning IntroductionMachine Learning Introduction
Machine Learning Introduction
 
Le Machine Learning de A à Z
Le Machine Learning de A à ZLe Machine Learning de A à Z
Le Machine Learning de A à Z
 
ML Basics
ML BasicsML Basics
ML Basics
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 

Similar to Primer to Machine Learning

Machine learning-in-details-with-out-python-code
Machine learning-in-details-with-out-python-codeMachine learning-in-details-with-out-python-code
Machine learning-in-details-with-out-python-codeOsama Ghandour Geris
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptxHchethankumar
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptxHchethankumar
 
notes as .ppt
notes as .pptnotes as .ppt
notes as .pptbutest
 
Essentials of machine learning algorithms
Essentials of machine learning algorithmsEssentials of machine learning algorithms
Essentials of machine learning algorithmsArunangsu Sahu
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine LearningEng Teong Cheah
 
01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdf01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdfnafisakhan14
 
Module 7: Unsupervised Learning
Module 7:  Unsupervised LearningModule 7:  Unsupervised Learning
Module 7: Unsupervised LearningSara Hooker
 
Intro to Machine Learning for non-Data Scientists
Intro to Machine Learning for non-Data ScientistsIntro to Machine Learning for non-Data Scientists
Intro to Machine Learning for non-Data ScientistsParinaz Ameri
 
Statistical foundations of ml
Statistical foundations of mlStatistical foundations of ml
Statistical foundations of mlVipul Kalamkar
 
Module 2: Machine Learning Deep Dive
Module 2:  Machine Learning Deep DiveModule 2:  Machine Learning Deep Dive
Module 2: Machine Learning Deep DiveSara Hooker
 
Barga Data Science lecture 9
Barga Data Science lecture 9Barga Data Science lecture 9
Barga Data Science lecture 9Roger Barga
 
How to implement artificial intelligence solutions
How to implement artificial intelligence solutionsHow to implement artificial intelligence solutions
How to implement artificial intelligence solutionsCarlos Toxtli
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.pptARVIND SARDAR
 
A step towards machine learning at accionlabs
A step towards machine learning at accionlabsA step towards machine learning at accionlabs
A step towards machine learning at accionlabsChetan Khatri
 
Machine Learning in Finance
Machine Learning in FinanceMachine Learning in Finance
Machine Learning in FinanceHamed Vaheb
 
Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha Animesh Sinha
 
Machine Learning Contents.pptx
Machine Learning Contents.pptxMachine Learning Contents.pptx
Machine Learning Contents.pptxNaveenkushwaha18
 

Similar to Primer to Machine Learning (20)

Machine learning-in-details-with-out-python-code
Machine learning-in-details-with-out-python-codeMachine learning-in-details-with-out-python-code
Machine learning-in-details-with-out-python-code
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
 
Internship - Python - AI ML.pptx
Internship - Python - AI ML.pptxInternship - Python - AI ML.pptx
Internship - Python - AI ML.pptx
 
notes as .ppt
notes as .pptnotes as .ppt
notes as .ppt
 
Essentials of machine learning algorithms
Essentials of machine learning algorithmsEssentials of machine learning algorithms
Essentials of machine learning algorithms
 
Introduction to Machine Learning
Introduction to Machine LearningIntroduction to Machine Learning
Introduction to Machine Learning
 
01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdf01. Machine can learn_machine learning.pdf
01. Machine can learn_machine learning.pdf
 
Module 7: Unsupervised Learning
Module 7:  Unsupervised LearningModule 7:  Unsupervised Learning
Module 7: Unsupervised Learning
 
Intro to Machine Learning for non-Data Scientists
Intro to Machine Learning for non-Data ScientistsIntro to Machine Learning for non-Data Scientists
Intro to Machine Learning for non-Data Scientists
 
Statistical foundations of ml
Statistical foundations of mlStatistical foundations of ml
Statistical foundations of ml
 
Module 2: Machine Learning Deep Dive
Module 2:  Machine Learning Deep DiveModule 2:  Machine Learning Deep Dive
Module 2: Machine Learning Deep Dive
 
ML Lec 1 (1).pptx
ML Lec 1 (1).pptxML Lec 1 (1).pptx
ML Lec 1 (1).pptx
 
Barga Data Science lecture 9
Barga Data Science lecture 9Barga Data Science lecture 9
Barga Data Science lecture 9
 
How to implement artificial intelligence solutions
How to implement artificial intelligence solutionsHow to implement artificial intelligence solutions
How to implement artificial intelligence solutions
 
Machine Learning Ch 1.ppt
Machine Learning Ch 1.pptMachine Learning Ch 1.ppt
Machine Learning Ch 1.ppt
 
Ml ppt at
Ml ppt atMl ppt at
Ml ppt at
 
A step towards machine learning at accionlabs
A step towards machine learning at accionlabsA step towards machine learning at accionlabs
A step towards machine learning at accionlabs
 
Machine Learning in Finance
Machine Learning in FinanceMachine Learning in Finance
Machine Learning in Finance
 
Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha Machine Learning Basics - By Animesh Sinha
Machine Learning Basics - By Animesh Sinha
 
Machine Learning Contents.pptx
Machine Learning Contents.pptxMachine Learning Contents.pptx
Machine Learning Contents.pptx
 

Recently uploaded

How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...OnePlan Solutions
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 

Recently uploaded (20)

How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...Advancing Engineering with AI through the Next Generation of Strategic Projec...
Advancing Engineering with AI through the Next Generation of Strategic Projec...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 

Primer to Machine Learning

Editor's Notes

  1. Siraj Raval
  2. Siraj Raval
  3. Siraj Raval
  4. Siraj Raval
  5. Siraj Raval
  6. Siraj Raval
  7. Siraj Raval
  8. https://thenewstack.io/what-machine-learning-can-and-cant-do/ context that a machine learning algorithm would need to understand in order to predict needs in a given business situation
  9. context that a machine learning algorithm would need to understand in order to predict needs in a given business situation
  10. machine learning as a subdiscipline of artificial intelligence. Both disciplines overlap, but they also have separate areas of knowledge. In the case of machine learning, it would include data mining techniques (a term generally applied to information extraction techniques based on raw data), which are not part of artificial intelligence.
  11. Statistical learning theory deals with the problem of finding a predictive function based on data, which has led to successful applications in fields such as computer vision, speech recognition, bioinformatics and baseball.
  12. After all, you’re teaching machines that work in ones and zeros to reach their own conclusions about the world. You’re teaching them how to think! However, it’s not nearly as hard as the complex and formula-laden literature would have you believe. Like all of the best frameworks we have for understanding our world, e.g. Newton’s Laws of Motion, Jobs to be Done, Supply & Demand — the best ideas and concepts in machine learning are simple. The majority of literature on machine learning, however, is riddled with complex notation, formulae and superfluous language. It puts walls up around fundamentally simple ideas.
  13. Siraj Raval
  14. Training Phase: Converting raw data to data usable by ML algorithm Training an ML algorithm Test the prediction-accuracy of the pipeline
  15. Real-Time Prediction Phase: Using the output of the ML algorithm to perform actions in the real-world
  16. It’s easy to believe that machine learning is hard. An arcane craft known only to a select few academics.
  17. It’s easy to believe that machine learning is hard. An arcane craft known only to a select few academics.
  18. p = sigmoid(\beta_{0} + \beta_{1}x_{1} + \beta_{2}x_{2})
  19. \Theta_{0} = \frac{1}{m} \times \sum_{1}^{n} (p - y_{i}) \times x_{i}