Lecture 1
Lecture 1
Lecture 1
Lecture 1 : Introduction
Prof. Abeer ElKorany
▪ Course Description
▪ Assessment
Guidelines and Rules
Type grades
▪ 3 Assignments
(regression, SVM, DT)
16
▪ Mid term Exam 12
▪ project 12
▪ Final exam 60
Total 100
What is learning?
⮚ In other words
▪ instead of the programmer writing explicit rules for how to solve a given problem, the
programmer instructs the computer how to learn from examples
▪ in many cases the computer program can even become better at the task than the
programmer is!
What is machine learning?
⮚Definition:
Data
Output
Program
Machine Learning
Data
Program
Output
EXAMPLES
Example: Game Playing
T = playing Checkers
P = win rate against opponents
E = playing games against itself
Example 1 : Tic-Tac-Toe
Example 2 : face recognition
Example 3: Prediction of search queries
Example 4: Ranking search results
Example 5
Example 6
Example 7
Problem setup
Consider the case of Game playing, According to ML definition, it is a
computer program that improve its performance on a given task with
experience :
T = playing Checkers
P = win rate against opponents
E = playing games against itself
So we need to separate
E.g.: optical character recognition (OCR), where the computer program is shown a
photograph containing an image of text and is asked to return this text in the form of
a sequence of characters.
• Experience is a dataset.
- Accuracy : Accuracy is just the proportion of examples for which the model
produces the correct output.
- Error Rate : the proportion of examples for which the model produces an incorrect
output.
WHEN DO WE USE MACHINE LEARNING?
ML is used when:
❑• Human expertise does not exist (navigating on Mars)
❑• Humans can’t explain their expertise (speech recognition)
❑• Models must be customized (personalized medicine (
❑• Models are based on huge amounts of data (genomics)
WHEN DO WE USE MACHINE LEARNING?
Some more examples of tasks that are best
solved by using a learning algorithm
• Recognizing patterns:
– Facial identities or facial expressions
– Handwritten or spoken words
– Medical images
• Generating patterns:
– Generating images or motion sequences
• Recognizing anomalies:
– Unusual credit card transactions
– Unusual patterns of sensor readings in a nuclear power plant
• Prediction:
– Future stock prices or currency exchange rates
Slide credit: Geoffrey Hinton
Neural
network
Supervised Learning
❑In supervised learning, we are given a data set and already know what our correct output
should look like, having the idea that there is a relationship between the input and the
output.
❑Supervised learning problems are categorized into "regression" and "classification"
problems.
❑In a regression problem, we are trying to predict results within a continuous output,
meaning that we are trying to map input variables to some continuous function.
❑ In a classification problem, we are instead trying to predict results in a discrete output. In
other words, we are trying to map input variables into discrete categories.
SUPERVISED LEARNING PARADIGM
Learning entries
Training
usually entries are encoded
Text, Images as vector (x1,x2,…..,xn)
Omic data, Feature
Etc… vectors
Human expert labels
each learning entries
Machine
Labels learning
algorithm
Feature
Testing
vector
Text, Images Expected
Predictiv
Omic data, e Model Label
Etc…
Housing price prediction
250
175
750
X X
X X
o
Y o o o X
XX
oo
o
X
Unsupervised
o o
oo ooo
Y
o oo oo
o o
X
Unsupervised learning is where you only have input data and no
corresponding output variables.
Unsupervised Learning applications
The expression of set of genes for a
Gen certain individual
es
Individual
s
We need to cluster the individuals based of the similarity of their genes.
Gen
es
Individuals
Microarray data
• Have a group of individuals
• On each measure expression of a gene
• Run algorithm to cluster individuals into types of people
Unsupervised Learning applications
UNSUPERVISED
Learning Types
Unsupervised Supervised
Continuous Discrete
Clustering Classification
Dimensionality
Regression
reduction
Machine Learning types
Leaning by interaction
• Self driven car
ML in Practice
Problem 1: You have a large inventory of identical items. You want to predict how many of these items
will sell over the next 3 months.
Problem 2: You’d like software to examine individual customer accounts, and for each account decide if
it has been hacked/compromised.