(PR 2024) Lec1 Intro Regression I

Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

Pattern Recognition

Lecture 1: Introduction & Regression I


Dr. Dina Khattab
Faculty of Computer & Information Sciences (FCIS) - Ain Shams University
[email protected]
Instructor: Dr. Dina Khattab

Email: [email protected]

Office Hours: Wednesday 7:00 PM to 9:00 PM


Agenda
• Introduction about Machine Learning

• Simple Regression
Linear regression with one variable

3
Artificial Intelligence

• Is the science which allows machines (or


computers) to mimic cognitive functions that
humans associate with the human mind, such as
learning , problem solving and decision making
specially for non-programed situations
AI Problems

• Reasoning & Problem Solving

• Knowledge representation (Expert


Systems)

• Planning

• Learning (ML)

• Natural Language Processing (NLP)

• Perception (Vision & Speech)

• Motion & Manipulation (Robotics)


Machine Learning (ML)
• Traditional Learning (Rule-based)

Data

Computer Output
Program

• Machine Learning (example/experience-based)

Data

Computer Program

Output
What is Machine Learning is about?

• Enable the machine to learn.


• It’s all about data (understand data very well and have good data)

• Machine learning process


– Data (datasets) >> Techniques >> decisions
Applications
Retail
• Face/Speech Recognition
• Language Translation
• Self-driving Cars
Search
• Virtual Personal Assistant
• Traffic Predictions
• Stock Marketing Movie
• Healthcare Distribution

• Medical Diagnosis
• Style Recommendation
• Advertising Videos
• Filtering/News feed

Music
Types of Machine Learning

Machine Learning

Supervised Unsupervised Reinforcement

Task driven Data driven Learn by interacting to


(Regression / (Clustering) environment
classification)
Syllabus

 Supervised Learning
– Regression
– Classification
 Unsupervised Learning
– Clustering & Retrieval
– Dimensionality Reduction
REGRESSION
What is Regression?
• From features to predictions

12
Salary after ML Course

• How much will your salary be? (y = $$)


• Depends on x = degree of course, quality of
project, ….
13
Stock Prediction
• Predict the price of a stock (y)
• Depends on x =
– Recent history of stock price
– News events
– Related commodities

14
Predicting House Prices

ML Model

15
Look at recent sales in my
neighborhood
• How much did they sell for?

16
Supervised Learning Regression Problem
Given the “right answer” for Predict real-valued output
each example in the data.
17
Model –
How we assume the world works

18
Model –
How we assume the world works

19
Which model ?

20
Task 2 – For a given model f(x),
estimate function f( x) from data

21
Which line?

22
Task 2 – For a given model f(x),
estimate function f( x) from data

23
24
Credit for

• Machine Learning Specialization (2015) by Emily


Fox & Carlos Guestrin – Uni. Of Washington.

• Machine Learning, by Andrew Ng – Uni. Of


Stanford.

You might also like