Professional Documents
Culture Documents
LL Evaluationmatrics
LL Evaluationmatrics
1. Accuracy
❖ Example: Medical data
➢ The number of instances that are correctly predicted as sick (TP)
➢ The number of instances that are correctly predicted as healthy (TN)
➢ The number of instances that are incorrectly predicted as sick when the
person is healthy (FP)
➢ The number of instances that are incorrectly predicted as healthy when
person is sick (FN)
Machine Predicted as Machine Predicted as
sick (Class A) Healthy (Class B)
RECALL
Positive (+) In Real Life True Positive (TP) False Negative (FN)
class A Sick
Negative (-) In Real Life False Positive (FP) True Negative (TN)
class B Healthy
PRECISION
❖ Formula
𝑵𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝑪𝒐𝒓𝒆𝒄𝒕 𝑷𝒓𝒆𝒅𝒊𝒄𝒕𝒊𝒐𝒏𝒔 𝑻𝑷+𝑻𝑵
Accuracy = ∗ 𝟏𝟎𝟎 = * 100
𝑻𝒐𝒕𝒂𝒍 𝑵𝒖𝒎𝒃𝒆𝒓 𝒐𝒇 𝑷𝒓𝒆𝒅𝒊𝒄𝒕𝒊𝒐𝒏𝒔 𝑻𝑷+𝑻𝑵+𝑭𝑷+𝑭𝑵
2. Precision
➢ The Proportion of true positive predictions among all positive predictions
made by the model.
❖ Formula
𝑻𝑷
precision = * 100
𝑭𝑷+𝑻𝑷
➢ 3. Recall
➢ It’s also known “sensitivity or true positive rate”. measures the proportion
of true positive predictions among all actual instances.
❖ Formula
𝑻𝑷
Recall = * 100
𝑻𝑷+𝑭𝑵
In words, recall quantifies the model’s ability to capture all the positive instances
without missing any. It answers the questions: “Out of all the actual positive
instances, how many did the model correctly identify as positive?” A high recall value
indicates that the model is effectively capturing most of the positive instances, with
fewer false negatives.
❖ Formula
𝑷𝒓𝒆𝒄𝒊𝒔𝒐𝒏+𝑹𝒆𝒄𝒂𝒍𝒍
F1-Score = 𝟐 ∗
𝑷𝒓𝒆𝒄𝒊𝒔𝒊𝒐𝒏∗𝑹𝒆𝒄𝒂𝒍𝒍
ENJOY LEARNING!