Lecture1 - ML Introduction
Lecture1 - ML Introduction
Lecture1 - ML Introduction
Fall 2024
LMS Enrollment Code: 582196407
Dr Jameel Malik
muhammad.jameel@seecs.edu.pk
Today’s Outline
• Instructor
• Course Books
andrew ng
“A computer program is said to learn from experience E with respect to
some task T and some performance measure P, if its performance on T,
as measured by P, improves with experience E.”
Suppose your email program watches which emails you do or do
not mark as spam, and based on that learns how to better filter
spam. What is the task T in this setting?
The number (or fraction) of emails correctly classified as spam/not spam. (P)
andrew ng
A Few Examples of the State-of-the-art
Openpose
10
Machine Learning (ML)
• Supervised ML:
– The goal is to learn a mapping between input data and output data labels, so the
algorithm can make accurate predictions on new, unseen data.
• Unsupervised ML:
– The goal is to discover patterns, relationships, or structure in the data, without prior
knowledge of the output (unlabelled data).
Supervised ML: House Price Prediction
400
300
Price ($)
200
in 1000’s
100
0
0 500 1000 1500 2000 2500
Size in feet2
300
Price ($)
200
in 1000’s
100
0
0 500 1000 1500 2000 2500
Size in feet2
house or townhouse?
Supervised ML vs. Unsupervised ML
• Given data labels • No data labels given
Malignant Cancer Malignant Cancer
Benign Cancer Benign Cancer
x2 x2
x1 x1 andrew ng
Supervised ML vs. Unsupervised ML
• Given data labels • No data labels given
Malignant Cancer Malignant Cancer
Benign Cancer Benign Cancer
x2 x2
Classification Clustering
Algorithm Algorithm
x1 x1 andrew ng
Unsupervised ML: News articles example
andrew ng
Unsupervised ML: News articles example
andrew ng
Unsupervised ML: News articles example
andrew ng
Unsupervised ML: News articles example
andrew ng
Of the following examples, which would you address using an
unsupervised learning algorithm? (Check all that apply.)
Given a set of news articles found on the web, group them into
set of articles about the same story.
Given a database of customer data, automatically discover market
segments and group customers into different market segments.
Given a dataset of patients diagnosed as either having diabetes or
not, learn to classify new patients as having diabetes or not.
andrew ng