-
Notifications
You must be signed in to change notification settings - Fork 8
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
torchmetrics #4
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, thank you for sharing your code.
I am wondering if there is a bug in the evaluation of the Propaganda Meme dataset.
In the evaluation procedure, torchmetrics.F1 receives preds (and batch['labels']), but the data type of preds is Int (long).
hateclipper/engine.py
Line 395 in 04c86b8
Given an Int tensor, TorchMetrics returns unexpected results as below:
I tested this with PyTorch v1.13.1 and TorchMetrics v0.10.0.
I didn't check the other metrics (e.g., precision and recall), but the same problem may exist.
Thank you.
The text was updated successfully, but these errors were encountered: