Lecture .......... Types of Learning in Machine Learning and Machine Learning Cycle
Lecture .......... Types of Learning in Machine Learning and Machine Learning Cycle
1 Supervised Learning
Three main
types of 2 Unsupervised Learning
learning are
3 Semi-supervised Learning
Definition
Classification
Definition
In Classification, the Output is Categorical (or Discrete)
Example
Task: Gender Identification – Annotated Data
Instance No. Input Output
Height Weight Hair Length Beard Scarf Gender
d1 180.3 196 Bald Yes No Male
d2 170.0 120 Long No No Female
d3 178.5 200 Short No No Male
d4 163.4 110 Medium No Yes Female
d5 175.2 220 Short Yes No Male
d6 165.0 150 Medium No Yes Female
d7 179.1 185 Long Yes No Male
d8 160.5 130 Short No No Female
d9 177.8 160 Bald No No Male
d10 161.1 100 Medium No No Female
Dr. Rao Muhammad Adeel Nawab 7
Types of Supervised Learning Cont...
Regression
Definition
In Regression, the Output is Numeric (or Continuous)
Example
Task: House Price Prediction– Annotated Data
Instance Input Output
No. House Price
rm age dis rad Istat
d1 6.575 65.2 4.0900 1 4.98 24.0
d2 6.421 78.9 4.9671 2 9.14 21.6
d3 6.998 45.8 6.0622 3 2.94 33.4
d4 7.147 54.2 6.0622 3 5.33 36.2
d5 6.012 66.6 5.5605 5 12.43 22.9
Dr. Rao Muhammad Adeel Nawab 9
Unsupervised Learning
Definition
Strengths Weaknesses
Definition
Strengths Weaknesses
Label Propagation
Training /
Feedback
Learning
Phase
Phase
Testing /
Application
Phase Evaluation
Phase
Balanced Data
No. of Classes
Class 01 = Male Class 02 = Female
Dataset Size
300 Instances
No. of Classes
Class 01 = Male Class 02 = Female
Data Distribution
Male = 300 (50%) Female = 300 (50%)
Recall
Training /
Feedback
Learning
Phase
Phase
Testing /
Application
Phase Evaluation
Phase
Definition
Definition
𝑫𝒂𝒕𝒂=𝑴𝒐𝒅𝒆𝒍+𝑬𝒓𝒓𝒐𝒓
In Training Phase, Model is build using the Training Data
In Testing Phase, Test Data is used to check the Error in the
Model
Definition
Definition
Definition Purpose
1 Batch Method
Some of the
main types of
Training 2 Incremental Method
Regimes are
3 On-line Method
Batch Method
Incremental Method
On-line Method