Chap2 SupervisedLearning
Chap2 SupervisedLearning
Supervised Learning
HCMC, 10-2022
What is supervised
learning?
https://ml-
cheatsheet.readthedocs.io/en/latest/loss_fu
nctions.html#:~:text=Cross%2Dentropy%20l
oss%2C%20or%20log,diverges%20from%20t
he%20actual%20label.
Evaluating a Classification model
Confusion matrix
For linear data, we have used two dimensions x and y, so for non-linear
data, we will add a third dimension z. It can be calculated as:
z=x^2 +y^2
Since we are in 3-d Space, hence it is looking like a plane
By adding the third dimension, the sample space will become as below
parallel to the x-axis. If we convert it in 2d space with z=1,
image:
then it will become as:
Naïve Bayes Classifier
Algorithm