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

Displaying scores per class #410

Closed
ludovicmoncla opened this issue May 1, 2024 · 2 comments · Fixed by #424
Closed

Displaying scores per class #410

ludovicmoncla opened this issue May 1, 2024 · 2 comments · Fixed by #424
Labels
documentation Improvements or additions to documentation

Comments

@ludovicmoncla
Copy link

For those using multiclass classification, it would be interesting if you add an example in the documentation to display the scores per class. This can be very useful, especially for unbalanced datasets.
For instance, for displaying fscore on the test set:

for label_id, label_name in annotated_images.labels_map.items():
    print(label_name, my_classifier.metrics['epoch_fscore_'+str(label_id)+'_test'])

I suggest adding this before the Saving your work section: https://mapreader.readthedocs.io/en/latest/User-guide/Classify/Train.html#saving-your-work

@ludovicmoncla ludovicmoncla added the documentation Improvements or additions to documentation label May 1, 2024
@kmcdono2
Copy link
Collaborator

kmcdono2 commented May 3, 2024

Thanks @ludovicmoncla - we'll add this!

@rwood-97
Copy link
Collaborator

rwood-97 commented May 8, 2024

Part of #417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Status: Done (review)
Development

Successfully merging a pull request may close this issue.

3 participants