SlideShare a Scribd company logo
ICP3083 L.I. Kuncheva
Lecture 8: Classifiers
Linear discriminant classifier
Rule-based classifiers
1
ICP3083 L.I. Kuncheva
Classifier Models
1. Nearest mean classifier
2. Linear discriminant classifier (LDC)
3. Rule-based classifiers
4. k-Nearest Neighbour Classifier (k-nn)
5. Decision tree classifier
6. Support Vector Machine classifier (SVM)
7. Classifier Ensembles
2
ICP3083 L.I. Kuncheva
The name shows the type of discriminant functions.
Linear discriminant classifier
ncncccc
nn
xaxaxaag
xaxaxaag


...)(
...
...)(
22110
1212111101
x
x
The coefficients aij could be any: positive, negative or zero.
3
ICP3083 L.I. Kuncheva
An example: two classes, 1-d feature space
.2,  cx
xxg
xxg
23)(
2)(
2
1


)(2 xg
)(1 xg
Classification regions
x
Q1. Find the threshold point
that determines the
classification regions.
3
1
232
)()( 21



x
xx
xgxg
4
ICP3083 L.I. Kuncheva
An example: three classes, 1-d feature space
3,  cx
3)(
23)(
2)(
3
2
1



xg
xxg
xxg
)(2 xg
)(1 xg
)(3 xg
Q2. Draw a graph and find the classification regions
Classification regions:
Class 1: from 1 to 
Class 2: from - to 0
Class 3: from 0 to 1
discriminant functions
5
ICP3083 L.I. Kuncheva
2,2
 cx
Each discriminant function is a plane, e.g.
An example: two classes, 2-d feature space
212
211
41)(
325)(
xxg
xxg


x
x
6
ICP3083 L.I. Kuncheva
Linear discriminant classifier (LDC)
• How do we get the discriminant functions?
We train the classifier so that the separability between the classes
is maximised. To train an LDC means to find all the coefficients aij
in the discriminant functions.
• What do the classification regions of LDC look like?
For 1-d feature space these are intervals on the x-axis, one interval
per class.
For 2-d feature space the classification regions are divided by
straight lines. In a 2-class problem, the discriminant functions
define a single line (classification boundary) that separates the
two classification regions.
7
0 0.2 0.4 0.6 0.8 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
IPS3083/4083 L.I. Kuncheva
if
2.0
5.0
25.0
2
1
1



x
x
x
class “green”
class = “grey”
then
if
35.0
55.0
2
1


x
x
class “blue”
then
Rule-based classifiers
8
0 0.2 0.4 0.6 0.8 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
IPS3083/4083 L.I. Kuncheva
Rule-based classifiers 831 Grey 42%
480 Green 24%
689 Blue 34%
Q1. What would be the
error rate of the Largest
Prior (Majority)
classifier?
MajorityclassifierwilllabelallasGrey:
error=100-42%=
58%errorrate
9
Zero-R
classifier (0 rule)
= Largest prior
classifier
0 0.2 0.4 0.6 0.8 1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
IPS3083/4083 L.I. Kuncheva
Rule-based classifiers 831 Grey 42%
480 Green 24%
689 Blue 34%
ONE-R classifier (1 rule)
Check each feature separately and calculate the
accuracy at each split. Keep the ONE split with
the highest accuracy.
10
0 0.2 0.4 0.6 0.8 1
0
0.2
0.4
0.6
0.8
1
0.6425
IPS3083/4083 L.I. Kuncheva
Rule-based classifiers
Label here as
Grey
Label here as
Blue
Moveacrossthewholespanofthefeature
Grey 147
Green 57
Blue 635
Grey 650
Green 444
Blue 67
11
0 0.2 0.4 0.6 0.8 1
0
0.2
0.4
0.6
0.8
1
0.6425
IPS3083/4083 L.I. Kuncheva
Rule-based classifiers
Even though the error is estimated on
the TRAINING data only
(resubstitution) the classifier is very
robust, i.e., its generalisation is good!
The resubstitution
error rate is
100-64.25 = 35.75%
12
0 0.2 0.4 0.6 0.8 1
0
0.2
0.4
0.6
0.8
1
0.6425
IPS3083/4083 L.I. Kuncheva
Rule-based classifiers
Posterior probabilities for ANY x in the respective region
Grey 147/839 = 0.18
Green 57/839 = 0.07
Blue 635/839 = 0.75
Grey 650/1161 = 0.56
Green 444/1161 = 0.38
Blue 67/1161 = 0.06
13

More Related Content

PPTX
Matrix by suman sir
PDF
Anatomy of YOLO - v1
PDF
An RKHS Approach to Systematic Kernel Selection in Nonlinear System Identific...
PPTX
Introduction To Programming in Matlab
PPTX
WEKA: Credibility Evaluating Whats Been Learned
PPTX
Classification
PPTX
Data Applied:Decision Trees
PPTX
WEKA: Data Mining Whats It All About
Matrix by suman sir
Anatomy of YOLO - v1
An RKHS Approach to Systematic Kernel Selection in Nonlinear System Identific...
Introduction To Programming in Matlab
WEKA: Credibility Evaluating Whats Been Learned
Classification
Data Applied:Decision Trees
WEKA: Data Mining Whats It All About

Viewers also liked (20)

PPTX
WEKA: Practical Machine Learning Tools And Techniques
PPTX
Quick Look At Classification
PPTX
Data Applied: Correlation
PPTX
Data Applied:Outliers
PPTX
Matlab: Discrete Linear Systems
PPTX
Classification Continued
PPTX
Programming Environment in Matlab
PPT
Textmining Predictive Models
PPT
Association Rules
PPTX
Data Mining The Sky
PPT
Textmining Introduction
PPTX
XL Miner: Classification
PPTX
Data For Datamining
PDF
rule-based classifier
PPTX
WEKA: Algorithms The Basic Methods
PPT
Covering (Rules-based) Algorithm
PPTX
Introduction to Data Mining
PPTX
Data Applied: Association
PPTX
Association Analysis
WEKA: Practical Machine Learning Tools And Techniques
Quick Look At Classification
Data Applied: Correlation
Data Applied:Outliers
Matlab: Discrete Linear Systems
Classification Continued
Programming Environment in Matlab
Textmining Predictive Models
Association Rules
Data Mining The Sky
Textmining Introduction
XL Miner: Classification
Data For Datamining
rule-based classifier
WEKA: Algorithms The Basic Methods
Covering (Rules-based) Algorithm
Introduction to Data Mining
Data Applied: Association
Association Analysis
Ad

Similar to Lecture8 classifiers ldc_rules (20)

PDF
The Perceptron - Xavier Giro-i-Nieto - UPC Barcelona 2018
PDF
⭐⭐⭐⭐⭐ Device Free Indoor Localization in the 28 GHz band based on machine lea...
PDF
Multiuser detection new
PDF
CSC446: Pattern Recognition (LN8)
PDF
Distributed Architecture of Subspace Clustering and Related
PDF
InternshipReport
PPTX
SOFT COMPUTING TECHNIQUES AND APPLICATIONS
PPT
PhD_seminar_final
PDF
Implementing Minimum Error Rate Classifier
PDF
The Positive Effects of Fuzzy C-Means Clustering on Supervised Learning Class...
PDF
The Positive Effects of Fuzzy C-Means Clustering on Supervised Learning Class...
PPTX
Kulakov_Mykhailo.pptx
PDF
CBM Fault Detection by Carl Byington
PPTX
Protein Secondary Structure Prediction using Deep Learning methods
PDF
Machine learning for_finance
PPTX
Digit recognizer by convolutional neural network
PPT
tutorial.ppt
PDF
2012 mdsp pr13 support vector machine
PPTX
Tensor Spectral Clustering
PPT
mathematics of network science: basic definitions
The Perceptron - Xavier Giro-i-Nieto - UPC Barcelona 2018
⭐⭐⭐⭐⭐ Device Free Indoor Localization in the 28 GHz band based on machine lea...
Multiuser detection new
CSC446: Pattern Recognition (LN8)
Distributed Architecture of Subspace Clustering and Related
InternshipReport
SOFT COMPUTING TECHNIQUES AND APPLICATIONS
PhD_seminar_final
Implementing Minimum Error Rate Classifier
The Positive Effects of Fuzzy C-Means Clustering on Supervised Learning Class...
The Positive Effects of Fuzzy C-Means Clustering on Supervised Learning Class...
Kulakov_Mykhailo.pptx
CBM Fault Detection by Carl Byington
Protein Secondary Structure Prediction using Deep Learning methods
Machine learning for_finance
Digit recognizer by convolutional neural network
tutorial.ppt
2012 mdsp pr13 support vector machine
Tensor Spectral Clustering
mathematics of network science: basic definitions
Ad

More from www.myassignmenthelp.net (20)

PPT
Programming assignment help by myassignmenthelp
PPTX
Artificial intelligence : what it is
PPTX
natural language processing help at myassignmenthelp.net
PPTX
Python assignment help
PPTX
Programming languages
PPTX
Uml assignment help
PPTX
Entity relationship-diagrams
PPTX
Programming assignment-help at myassignmenthelp.net
PPT
Programming assignment help
PPT
Entity relationship diagram for dummies
PPT
How to write effective case study
PPTX
Critical path method example by myassignmenthelp
PPTX
Nursing ppt by myassignmenthelp.net
PPTX
Energy efficiency of qantas by myassignmenthelp
PPTX
Xml programming language myassignmenthelp.net
PPTX
Learn ActionScript programming myassignmenthelp.net
PPTX
Learn Basics of chemistry myassignmenthelp.net
PPT
Hysys help only at myassignmenthelp.net
PPTX
Materials Flux Analysis @myassignmenthelp.net
PPT
Aspect-Oriented Software Development with Use Cases
Programming assignment help by myassignmenthelp
Artificial intelligence : what it is
natural language processing help at myassignmenthelp.net
Python assignment help
Programming languages
Uml assignment help
Entity relationship-diagrams
Programming assignment-help at myassignmenthelp.net
Programming assignment help
Entity relationship diagram for dummies
How to write effective case study
Critical path method example by myassignmenthelp
Nursing ppt by myassignmenthelp.net
Energy efficiency of qantas by myassignmenthelp
Xml programming language myassignmenthelp.net
Learn ActionScript programming myassignmenthelp.net
Learn Basics of chemistry myassignmenthelp.net
Hysys help only at myassignmenthelp.net
Materials Flux Analysis @myassignmenthelp.net
Aspect-Oriented Software Development with Use Cases

Recently uploaded (20)

PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Complications of Minimal Access Surgery at WLH
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
master seminar digital applications in india
PDF
Classroom Observation Tools for Teachers
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Basic Mud Logging Guide for educational purpose
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Complications of Minimal Access Surgery at WLH
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
01-Introduction-to-Information-Management.pdf
master seminar digital applications in india
Classroom Observation Tools for Teachers
Anesthesia in Laparoscopic Surgery in India
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Supply Chain Operations Speaking Notes -ICLT Program
human mycosis Human fungal infections are called human mycosis..pptx
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
RMMM.pdf make it easy to upload and study
102 student loan defaulters named and shamed – Is someone you know on the list?
Renaissance Architecture: A Journey from Faith to Humanism
Basic Mud Logging Guide for educational purpose

Lecture8 classifiers ldc_rules

  • 1. ICP3083 L.I. Kuncheva Lecture 8: Classifiers Linear discriminant classifier Rule-based classifiers 1
  • 2. ICP3083 L.I. Kuncheva Classifier Models 1. Nearest mean classifier 2. Linear discriminant classifier (LDC) 3. Rule-based classifiers 4. k-Nearest Neighbour Classifier (k-nn) 5. Decision tree classifier 6. Support Vector Machine classifier (SVM) 7. Classifier Ensembles 2
  • 3. ICP3083 L.I. Kuncheva The name shows the type of discriminant functions. Linear discriminant classifier ncncccc nn xaxaxaag xaxaxaag   ...)( ... ...)( 22110 1212111101 x x The coefficients aij could be any: positive, negative or zero. 3
  • 4. ICP3083 L.I. Kuncheva An example: two classes, 1-d feature space .2,  cx xxg xxg 23)( 2)( 2 1   )(2 xg )(1 xg Classification regions x Q1. Find the threshold point that determines the classification regions. 3 1 232 )()( 21    x xx xgxg 4
  • 5. ICP3083 L.I. Kuncheva An example: three classes, 1-d feature space 3,  cx 3)( 23)( 2)( 3 2 1    xg xxg xxg )(2 xg )(1 xg )(3 xg Q2. Draw a graph and find the classification regions Classification regions: Class 1: from 1 to  Class 2: from - to 0 Class 3: from 0 to 1 discriminant functions 5
  • 6. ICP3083 L.I. Kuncheva 2,2  cx Each discriminant function is a plane, e.g. An example: two classes, 2-d feature space 212 211 41)( 325)( xxg xxg   x x 6
  • 7. ICP3083 L.I. Kuncheva Linear discriminant classifier (LDC) • How do we get the discriminant functions? We train the classifier so that the separability between the classes is maximised. To train an LDC means to find all the coefficients aij in the discriminant functions. • What do the classification regions of LDC look like? For 1-d feature space these are intervals on the x-axis, one interval per class. For 2-d feature space the classification regions are divided by straight lines. In a 2-class problem, the discriminant functions define a single line (classification boundary) that separates the two classification regions. 7
  • 8. 0 0.2 0.4 0.6 0.8 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 IPS3083/4083 L.I. Kuncheva if 2.0 5.0 25.0 2 1 1    x x x class “green” class = “grey” then if 35.0 55.0 2 1   x x class “blue” then Rule-based classifiers 8
  • 9. 0 0.2 0.4 0.6 0.8 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 IPS3083/4083 L.I. Kuncheva Rule-based classifiers 831 Grey 42% 480 Green 24% 689 Blue 34% Q1. What would be the error rate of the Largest Prior (Majority) classifier? MajorityclassifierwilllabelallasGrey: error=100-42%= 58%errorrate 9 Zero-R classifier (0 rule) = Largest prior classifier
  • 10. 0 0.2 0.4 0.6 0.8 1 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 IPS3083/4083 L.I. Kuncheva Rule-based classifiers 831 Grey 42% 480 Green 24% 689 Blue 34% ONE-R classifier (1 rule) Check each feature separately and calculate the accuracy at each split. Keep the ONE split with the highest accuracy. 10
  • 11. 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.6425 IPS3083/4083 L.I. Kuncheva Rule-based classifiers Label here as Grey Label here as Blue Moveacrossthewholespanofthefeature Grey 147 Green 57 Blue 635 Grey 650 Green 444 Blue 67 11
  • 12. 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.6425 IPS3083/4083 L.I. Kuncheva Rule-based classifiers Even though the error is estimated on the TRAINING data only (resubstitution) the classifier is very robust, i.e., its generalisation is good! The resubstitution error rate is 100-64.25 = 35.75% 12
  • 13. 0 0.2 0.4 0.6 0.8 1 0 0.2 0.4 0.6 0.8 1 0.6425 IPS3083/4083 L.I. Kuncheva Rule-based classifiers Posterior probabilities for ANY x in the respective region Grey 147/839 = 0.18 Green 57/839 = 0.07 Blue 635/839 = 0.75 Grey 650/1161 = 0.56 Green 444/1161 = 0.38 Blue 67/1161 = 0.06 13