-
-
Notifications
You must be signed in to change notification settings - Fork 26k
Test pairwise distances argkmin #22127
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
Closed
ogrisel
wants to merge
18
commits into
scikit-learn:main
from
ogrisel:test_pairwise_distances_argkmin
Closed
Test pairwise distances argkmin #22127
ogrisel
wants to merge
18
commits into
scikit-learn:main
from
ogrisel:test_pairwise_distances_argkmin
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This introduces the neccessary private implementations for a new private submodule, i.e.: - DatasetsPair, an abstraction to wrap a pair of two datasets and compute their vectors pairwise distances - DenseDenseDatasetsPair, a first implementation of DatasetsPair for pair of two dense datasets - PairwiseDistancesReduction, an abstraction allowing computing reductions efficiently in parallel and of - PairwiseDistancesArgkmin, a first implementation of PairwiseDistancesReduction for k-Nearest Neighbors search
Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Christian Lorentzen <[email protected]>
Co-authored-by: Christian Lorentzen <[email protected]>
This was introduced once a long time ago for a failure which was happening in a single configuration (see the comments). Let's see if this has been fixed. Co-authored-by: Christian Lorentzen <[email protected]>
Co-authored-by: Christian Lorentzen <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
To have argkmin_indices always be the first for consistency. Co-authored-by: Olivier Grisel <[email protected]>
This is more appropriate, especially for dynamic allocation. See: cython.readthedocs.io/en/latest/src/userguide/special_methods.html#initialisation-methods-cinit-and-init The __cinit__() method is where you should perform basic C-level initialisation of the object, including allocation of any C data structures that your object will own. Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Sorry, I did not mean to open this PR against |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make the test name more explicit about it's purpose. It's no longer about invariance but about correctness w.r.t. a pure numpy / scipy reference implementation.