Skip to content

adds available_device to test_precision_recall_curve #3335 #3368

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

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

BanzaiTokyo
Copy link
Collaborator

No description provided.


assert pytest.approx(precision) == sk_precision
assert pytest.approx(recall) == sk_recall
assert np.allclose(precision, sk_precision, rtol=1e-6)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from what I understand, pytest.approx may convert float32 parameter into float64. This would break on MPS

@github-actions github-actions bot added the module: metrics Metrics module label Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: metrics Metrics module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants