You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Given a confusion matrix as input, this function calculates the main statistics of interest (including macro AVG and microAVG):
'name' 'classes' 'macroAVG' 'microAVG'
Precision / / / x o
Specificity / / / x o
Sensitivity / / / x o
Accuracy / / / x o
F1-score / / / x o
Cite As
Eugenio Bertolini (2026). Precision, Specificity, Sensitivity, Accuracy & F1-score (https://www.mathworks.com/matlabcentral/fileexchange/86158-precision-specificity-sensitivity-accuracy-f1-score), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.1 (2.57 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.1 | - I swapped the false_positive and false_negatives as proposed in the comments.
|
||
| 1.0.0 |