Ch 7 - notes evaluation
Ch 7 - notes evaluation
Introduction
In the Evaluation stage, we will explore different methods of evaluating an AI model. Model
Evaluation is an integral part of the model development process. It helps to find the best model
that represents our data and how well the chosen model will work in the future. Evaluation is
the process of understanding the reliability of any AI model, based on outputs by feeding test
dataset into the model and comparing with actual answers.
Importance of Evaluation –
Following are the some of the advantages of evaluating a model:
Evaluation ensures that the model is operating correctly and optimally.
Evaluation is an initiative to understand how well it achieves its goals.
Evaluation helps to determine what works well and what could be improved in a
program
Prediction and Reality can be easily mapped together with the help of this confusion matrix.
Evaluation Methods
Accuracy-
Accuracy is defined as the percentage of correct predictions out of all the observations.
A prediction can be said to be correct if it matches the reality. Here, we have two conditions in
which the Prediction matches with the Reality: True Positive and True Negative.
Precision
Precision is defined as the percentage of true positive cases versus all the cases where the
prediction is true. That is, it takes into account the True Positives and False Positives.
Recall
It can be defined as the fraction of positive cases that are correctly identified. it considers True
Positives (There was a forest fire in reality and the model predicted a forest fire) and False
Negatives (There was a forest fire and the model didn’t predict it)
An ideal situation would be when we have a value of 1 (that is 100%) for both Precision and
Recall. In that case, the F1 score would also be an ideal 1 (100%). It is known as the perfect
value for F1 Score.