-
-
Notifications
You must be signed in to change notification settings - Fork 26k
TST Add some tests parametrization for test_neighbors #22281
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
TST Add some tests parametrization for test_neighbors #22281
Conversation
Co-authored-by: Olivier Grisel <[email protected]>
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.
Thanks for the test refactoring. Here are some feedback to speed-up the tests and try to increase the coverage for more metrics and expected exceptions in test_neighbors_metrics
.
Co-authored-by: Olivier Grisel <[email protected]>
neighbors.VALID_METRICS["brute"] | ||
) | ||
- set(["pyfunc", *BOOL_METRICS]) | ||
), |
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.
Nice, both explicit and easy to maintain!
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 am not whether you are serious or just joking.
Honestly, if one can suggest an eased definition, I would appreciate it.
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.
It's not a joke. I find it explicit this way which is good.
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.
LGTM! Thanks @jjerphan!
Edit: assuming CI with the new code will be green :)
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.
LGTM
Reference Issues/PRs
Extracted from #22214.
What does this implement/fix? Explain your changes.
Add more tests parametrization for neighbors based interfaces.
Any other comments?