Precision, Specificity, Sensitivity, Accuracy & F1-score

版本 1.0.1 (2.6 KB) 作者: Eugenio Bertolini
Given a confusion matrix as input, this function calculates the main statistics of interest, including macro AVG and microAVG.
1.6K 次下载
更新时间 2021/9/25

查看许可证

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

引用格式

Eugenio Bertolini (2024). Precision, Specificity, Sensitivity, Accuracy & F1-score (https://www.mathworks.com/matlabcentral/fileexchange/86158-precision-specificity-sensitivity-accuracy-f1-score), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.1

- I swapped the false_positive and false_negatives as proposed in the comments.
- I added the variable 'verbatim' in case you don't want to output in the command window.
- I checked that it works perfectly (also for 2 classes only).

1.0.0