Machine Learning Notes - Lec 01 - Basics of Machine Learning
Machine Learning Notes - Lec 01 - Basics of Machine Learning
Machine Learning Notes - Lec 01 - Basics of Machine Learning
Lecture 01
Basics of Machine Learning
. م
. م
. م ﷲ
! دت%$ & ' *)ی+ ,- ﷲ: آ
. / 0 د10 2 ' 34$ اور 2
Dr. Rao Muhammad Adeel Nawab
Power of Dua
Lectures 1 & 2
Assessment
Coursework: 25%
Midterm Examination: 25%
Final Examination: 50%
Office Hours
Email requests for appointment
Reading:
Chapter 1 of Mitchell
Chapter 1 of Witten & Frank
Machine Learning
Data
Computer Program
Output
Dr. Rao Muhammad Adeel Nawab 24
Types Of Learning
Deductive
Inductive DEDUCTIVE INDUCTIVE
Information Theory
Pattern Hypothesis
Theory Confirmation
Dr. Rao Muhammad Adeel Nawab 25
Deductive Learning
Deductive learning works on existing facts and knowledge
and deduces new knowledge from the old.
Example: Throwing a ball in air
I know Newton's Laws. So I conclude that if I let a ball go, it
will certainly fall downwards.
Deductive learning does not generate "new" knowledge at all.
It makes the reasoning system more efficient.
Sentiment Analysis
Gender
Identification
What is a “2”?
Output - Single 1 1 1
2 2 4
3 3 9
4 4 16
1 1
2 4
Input Output Here the concept to learn
3 9
4 16
is x2.
Output – Single
Set of
Input
Vectors
What is
output
here??
Set of
Output
Input
Vectors
Output
Set of
Input
Vector
Set of Output
Input
Vector
Set of Input
Vectors
Whole
Data
Testing
set
Output of Learner
Hypothesis – which best fits the training data
Note that learned function (or hypothesis) is an approximation of the
Target Function to be learned
Dr. Rao Muhammad Adeel Nawab 84
Learning
Training Example = {x1, …. xm} +f(xi) for each xi ϵ TE
Learner
Model
h1
Hypothesis Space
h2 h, where h ≈f
hi hk h best fits the
training data
Dr. Rao Muhammad Adeel Nawab 85
Evaluation
Important to know how well our learner is doing, i.e. how
good the hypothesis it produces is?
Standard approach is to test hypothesis (or Trained Model) on
a set of inputs and function values (or output) not used in
training, referred to as the test set.
Common evaluation measures used are:
Mean-squared error and
Accuracy = proportion of instances correctly classified
Trained
Model
Prediction
Learned
Model
Unseen Prediction
Example Extract Features as in Training set
Dr. Rao Muhammad Adeel Nawab 91
Dr. Rao Muhammad Adeel Nawab 92
How To Become a Great Human
Being