10000 TST Add test for quasi equality for `PairwiseDistancesReduction` results by jjerphan · Pull Request #23490 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

TST Add test for quasi equality for PairwiseDistancesReduction results #23490

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

jjerphan
Copy link
Member
@jjerphan jjerphan commented May 30, 2022

Reference Issues/PRs

Partly extracted from #22590

What does this implement/fix? Explain your changes.

Modify tests to add quasi-equality for 32bit implementations.

This comes by anticipation.

Any other comments?

This comes before porting implementations toits.
@jjerphan jjerphan changed the title TST Add test for quasi equality TST Add test for quasi equality for PairwiseDistancesReduction results May 30, 2022
@ogrisel
Copy link
Member
ogrisel commented May 30, 2022

Could you please add a test to check that assert_argkmin_results_quasi_equality is working correctly on some fixed data crafted on purpose?

@jjerphan jjerphan marked this pull request as ready for review June 1, 2022 10:04
@jjerphan jjerphan added Waiting for Reviewer float32 Issues related to support for 32bit data labels Jun 1, 2022
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
jjerphan and others added 2 commits June 7, 2022 17:31
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
jjerphan and others added 2 commits June 7, 2022 17:59
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Copy link
Member
@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

Another pass of reviews, otherwise LGTM!

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Copy link
Member
@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

Final pass of review. This LGTM!

@ogrisel
Copy link
Member
ogrisel commented Jun 8, 2022

Actually there is now a bunch of TypeError: assert_radius_neighborhood_results_equality() missing 1 required positional argument: 'radius' in the tests.

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Copy link
Member
@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

LGTM. Just a couple of nitpicks

Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
@jeremiedbb jeremiedbb merged commit 8b4191c into scikit-learn:main Jun 9, 2022
@jeremiedbb
Copy link
Member

Thanks @jjerphan

ogrisel added a commit to ogrisel/scikit-learn that referenced this pull request Jul 11, 2022
…lts (scikit-learn#23490)

Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>
Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
@jjerphan jjerphan deleted the tst/pairwise_distances_reductions-quasi-equality branch October 21, 2022 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0