MLT Tensorflow Unit 3
MLT Tensorflow Unit 3
• It is also used by the government to access the security feed and match it
with their existing database to find any criminals or to detect the robbers’
vehicle.
• True Negative: Model has given prediction No, and the real or actual
value was also No.
• True Positive: The model has predicted yes, and the actual value was also
true.
• False Negative: The model has predicted no, but the actual value was
Yes, it is also called as Type-II error.
• False Positive: The model has predicted Yes, but the actual value was
No. It is also called a Type-I error.
Need for Confusion Matrix in Machine learning
• It evaluates the performance of the classification models, when they
make predictions on test data, and tells how good our classification
model is.
• It not only tells the error made by the classifiers but also the type of
errors such as it is either type-I or type-II error.
• With the help of the confusion matrix, we can calculate the different
parameters for the model, such as accuracy, precision, etc.
Cost / Loss Function in Machine Learning
• A Machine Learning model should have a very high level of accuracy in
order to perform well with real-world applications.
• But how to calculate the accuracy of the model, i.e., how good or poor
our model will perform in the real world?
• In such a case, the Cost function comes into existence. It is an important
machine learning parameter to correctly estimate the model.