-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Fix codecov in tests for array api in pairwise metrics #29036
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might help catch weird bugs, so let's test this case.
check_array_api_metric( | ||
metric, array_namespace, device, dtype_name, a_np=X_np, b_np=Y_np | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi all, just realised that we are not passing the metric_kwargs
to the function (also in the function call below). I think it should be:
check_array_api_metric(
metric, array_namespace, device, dtype_name, a_np=X_np, b_np=Y_np, ** metric_kwargs
)
should I make another PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahrg! Yes please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I apologize for missing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also missed it in the previous PR 😇
See fix here: #29045
Reference Issues/PRs
Follow up of #29014
What does this implement/fix? Explain your changes.
Tried adding the condition which codecov reported as partially checked.
Any other comments?
CC: @ogrisel Do we need to add this or can we ignore?