Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro F1 Score calculation in your code. #3

Open
ashim95 opened this issue Jun 11, 2021 · 0 comments
Open

Macro F1 Score calculation in your code. #3

ashim95 opened this issue Jun 11, 2021 · 0 comments

Comments

@ashim95
Copy link

ashim95 commented Jun 11, 2021

Hi @ChristophAlt ,

Thank you for the wonderful codebase.

I see that for reporting macro averaged F1 scores, you first calculate macro averaged precision, then calculate macro averaged recall, and then use f1_measure = 2.0 * ((precision * recall) / (precision + recall + 1e-13)) to calculate macro averaged F1 score (here).

In standard implementations of macro F-score (like in scikit-learn), macro averaged F1 score is calculated by first calculating F1 score for each class and then taking the average of these F1 scores.

You might want to mention this somewhere in your documentation, as it can cause some confusion.

Let me know what you think.

Thanks,
Ashim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant