It is the evaluation measure to check the performance of the classification model. It measures the amount of divergence of predicted probability with the actual label. So lesser the log loss value, more the perfectness of model. For a perfect model, log loss value = 0. For instance, as accuracy is the count of correct predictions i.e. the prediction that matches the actual label, Log Loss value is the measure of uncertainty of our predicted labels based on how it varies from the actual label.
where, N : no. of samples. M : no. of attributes. yij : indicates whether ith sample belongs to jth class or not. pij : indicates probability of ith sample belonging to jth class.
Mean Squared Error
It is simply the average of the square of the difference between the original values and the predicted values.
Implementation of Mean Squared Error using sklearn
- Python | Mean Squared Error
- ML | R-squared in Regression Analysis
- NZEC error in Python
- Python | 404 Error handling in Flask
- Python | Prompt for Password at Runtime and Termination with Error Message
- ML | Spectral Clustering
- ML | Training Image Classifier using Tensorflow Object Detection API
- Operations on Graph and Special Graphs using Networkx module | Python
- ML | Types of Linkages in Clustering
- ML | Fowlkes-Mallows Score
- Chi-Square Test for Feature Selection - Mathematical Explanation
- Precision-Recall Curve | ML
- Python | Timezone Conversion
- spwd module in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.