It is the process of checkming how well an AI model performs after it has been trained.
It helps us find out whether the model is giving correct and reliable predictions.
Training = Teaching the model
Testing = Asking questions from the model
Evaluation = Checking how well the model answered
Suppose we have 100 student records.
DatasetNumber of RecordsTraining Data (80%)80Testing Data (20%)20
📚 Training Data = Questions you practice before the exam.
📝 Testing Data = Questions that appear in the actual exam.
If you perform well in the exam, it means your learning was successful.
An Overfitting Model learns the training data too well, including its mistakes and noise.
As a result, it performs very well on training data but poorly on new (test) data.
A student memorizes all practice questions but cannot solve new questions in the exam.
Training Accuracy → High
Testing Accuracy → Low
An Underfitting Model does not learn enough from the training data.
Therefore, it performs poorly on both training and testing data.
A student studies very little and performs poorly in both practice tests and the final exam.
Training Accuracy → Low
Testing Accuracy → LowA Perfect Fit Model learns the important patterns from the training data without memorizing it.
It performs well on both training and testing data.
A student understands concepts properly and performs well in both practice tests and the final exam.
Training Accuracy → High
Testing Accuracy → HighUnderfitting = Learns Too Little
Overfitting = Learns Too Much
Perfect Fit = Learns Just Right
Accuracy tells us how many predictions made by the AI model are correct.
Definition
Accuracy is the percentage of correct predictions made by an AI model.
Accuracy = (Correct Predictions / Total Predictions ) X 100
Suppose an AI model makes 100 predictions.
Accuracy = (90 ÷ 100) × 100 = 90%
Error tells us how many predictions made by the AI model are incorrect.
Error is the percentage of incorrect predictions made by an AI model.
Error = (Incorrect Predictions / Total Predictions ) X 100
Accuracy + Error = 100%
90% + 10% = 100%
Classification is a type of AI task in which data is placed into predefined categories or classes.
Classification Metrics are used to evaluate the performance of a classification model.
The most common metrics are:
A Confusion Matrix is a table that shows the number of correct and incorrect predictions made by a classification model.
Actual Positive and Predicted Positive.
Example: Sick person correctly identified as sick.
Actual Negative and Predicted Negative.
Example: Healthy person correctly identified as healthy.
Actual Negative but Predicted Positive.
Example: Healthy person wrongly identified as sick.
Actual Positive but Predicted Negative.
Example: Sick person wrongly identified as healthy.
Accuracy measures the percentage of correct predictions made by the model.
Accuracy = (TP + TN) / (TP + TN + FP + FN)
If a model correctly predicts 90 out of 100 cases:
Accuracy = 90%
What is Precision?
Precision tells us how many of the predicted positive cases are actually positive.
Precision measures the correctness of positive predictions.
Precision = TP / (TP + FP)
Suppose the model predicts 50 students will pass.
Precision = 45 / 50 = 0.90 (90%)
Recall tells us how many actual positive cases were correctly identified by the model.
Recall measures the model's ability to find all positive cases.
Recall = TP / (TP + FN)
There are 50 actual positive cases.
Recall = 45 / 50 = 0.90 (90%)
F1 Score is a metric that combines Precision and Recall into a single value.
It is used when we want a balance between Precision and Recall.
F1 Score is the harmonic mean of Precision and Recall.
Sometimes:
F1 Score helps us measure the overall performance by considering both together.
F1 Score = (2 X Precision X Recall) / (Precision + Recall)
Suppose:
F1 Score = 2 × (0.8 × 0.6) ÷ (0.8 + 0.6)
F1 Score = 0.69 or 69%
Imagine an AI model that detects spam emails.
Copyright © 2026 Orange Workflow - All Rights Reserved.
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.