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
pr_curve = PrecisionRecallCurve(task="binary")
precision, recall, thresholds = pr_curve(pred, target)
assert precision.size() == recall.size() == thresholds.size() ---------> does not fail
Environment
TorchMetrics 1.2
Additional context
This is an issue when you want to display the threshold value for all points in the curve (even though selecting this threshold makes no sense). It is also an issue when you want to create pandas.Dataframe from the returned tuple.
Quick fix on our side: we manually added a max_prediction + epsilon at the end of thresholds
The text was updated successfully, but these errors were encountered:
🐛 Bug
The thresholds returned by the precision recall curve classes/functions (and maybe others) is missing the last value (threshold > max_prediction)
To Reproduce
Expected behavior
Environment
TorchMetrics 1.2
Additional context
This is an issue when you want to display the threshold value for all points in the curve (even though selecting this threshold makes no sense). It is also an issue when you want to create pandas.Dataframe from the returned tuple.
Quick fix on our side: we manually added a
max_prediction + epsilon
at the end of thresholdsThe text was updated successfully, but these errors were encountered: