Chapter3 Classification Summary Final
Chapter3 Classification Summary Final
classification
What is classification?
• Classification is the process of categorizing a given set
of data into classes. The pre-defined classes act as our
labels, or ground truth.
• The model uses the features of an object to predict its
labels. E.g., filtering spam from non-spam emails or
classifying types of fruits based on their color, weight
and size.
1
What types of problems does classification
solve?
Binary Multi-class
| 2
To solve classification problems:
logistic regression
| 3
Logistic regression uses a logistic function:
sigmoid function
| 4
How can we measure the performance of a
logistic regression classifier?
| 5
Applying the confusion matrix to measure
the model performance
Negative Positive
| 6
Possible Collaboration areas
Indicates how Indicates how Indicates how many Indicates the equi-
accurately a result accurately positive positive samples the librium between the
can be correctly instances were classifier has falsely precision and the
predicted from the predicted and how predicted recall
total amount of many of them are
samples positive
The aim is to maximize true positives & true negatives; minimize false
positives & negatives
7
The evaluation metrics
| 8
Support vector machine (SVM)
| 9
A practical example: finding a 2D plane that
differentiates two classes
| 10
If there are more than three features,
we would have a hyper-space
11