Skip to content

Conversation

@mart-r
Copy link
Collaborator

@mart-r mart-r commented Aug 20, 2025

If recall and precision are 0, then there's division by 0 for F1 calculation and get_stats fails.

So this PR fixes that.

Along the same lines, also added a workaround for when calculating precison and recall would have caused a zero divsion error.

@mart-r mart-r merged commit 71e83bf into main Aug 20, 2025
17 of 20 checks passed
@mart-r mart-r deleted the CU-869a6w9c7-fix-stats-on-0prec-0rec branch August 20, 2025 16:03
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

Successfully merging this pull request may close these issues.

3 participants