Accuracy and metrics with Model
See original GitHub issueIn #286 I briefly talk about the idea of separating the metrics computation (like the accuracy) from Model
. At the moment, you can keep track of the accuracy in the logs (both history and console logs) easily with the flag show_accuracy=True
in Model.fit()
. Unfortunately this is limited to the accuracy and does not handle any other metrics that could be valuable to the user.
We could have the computation of these metrics outside of Model
and call them with callbacks if one wants to keep track of them during training. It may be valuable for the future but for it could also raise some issues short term
- It would be impossible to log the accuracy (or any other metrics) with the base logger as callbacks do not interact with each other. One solution would be to let the user create her own logger on a different level of verbosity (possibly by inheriting from the current
BaseLogger
). - We would have to think about how to access the training and validation set with callbacks.
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Evaluation Metrics Machine Learning - Analytics Vidhya
You build a model, get feedback from metrics, make improvements and continue until you achieve a desirable accuracy.
Read more >Metrics to Evaluate your Machine Learning Algorithm
Metrics to Evaluate your Machine Learning Algorithm · Classification Accuracy · Logarithmic Loss · Confusion Matrix · Area Under Curve · F1 Score....
Read more >Performance Metrics in Machine Learning [Complete Guide]
Classification accuracy is perhaps the simplest metric to use and implement and is defined as the number of correct predictions divided by the ......
Read more >Model Evaluation Metrics in Machine Learning - KDnuggets
Accuracy is a common evaluation metric for classification problems. It's the number of correct predictions made as a ratio of all predictions ...
Read more >Metrics - Keras
Accuracy metrics · Probabilistic metrics · Regression metrics · Classification metrics based on True/False positives & negatives · Image segmentation metrics · Hinge ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, I’m new to Keras. Please tell me how to properly implement a custom metric. My code looks like this (I’m using scikit-learn wrapper):
Which leads to:
How to write a general metric function that will work for all backends (or cast arguments
act
andpred
to numpy arrays)? Do you guys have any examples?Regards
When we pass metrics = [‘accuracy’] in compile stage, what happend actually under the hood? Which kind of accuracy is computed, since keras has binary_accuracy, categorical_accuracy, … and others?