Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Conversation

ogrisel
Copy link
Member

@ogrisel ogrisel commented Jan 5, 2022

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.

jjerphan and others added 18 commits December 23, 2021 10:15
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: 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: Thomas J. Fan <[email protected]>
Co-authored-by: Olivier Grisel <[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]>
@ogrisel
Copy link
Member Author

ogrisel commented Jan 5, 2022

Sorry, I did not mean to open this PR against upstream/main but as jjerphan#7 instead.

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.

2 participants