You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in this PR #1474 (comment) a simple spelling mistake can lead to this comparison not working. Converting to Enum should hopefully make it more safe.
Alternatives
Additional context
The text was updated successfully, but these errors were encountered:
🚀 Feature
Convert the
if, elif
statements that use thetask
argument in classification metrics to instead be aEnum
type comparison.Concrete example:
https://github.com/Lightning-AI/metrics/blob/0caec8f09bfd3ddeb11f0130b3f330bf4b39654c/src/torchmetrics/classification/accuracy.py#L456-L467
Motivation
As reported in this PR #1474 (comment) a simple spelling mistake can lead to this comparison not working. Converting to Enum should hopefully make it more safe.
Alternatives
Additional context
The text was updated successfully, but these errors were encountered: