Skip to content
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

Plumb metric and metric_kwds through to UMAP with nn_descent #6304

Draft
wants to merge 5 commits into
base: branch-25.04
Choose a base branch
from

Conversation

jcrist
Copy link
Member

@jcrist jcrist commented Feb 7, 2025

Previously we were erroneously missing this plumbing, leaving the metric and metric_arg as the defaults when nn_descent is used. In the long run we should redo how the parameters are passed when nn_descent is enabled to avoid this duplication (there's a few other uselessly exposed params like return_distances), but for now fixing the plumbing to be more correct seems fine.

On top of #6303, leaving as draft for now until that's merged.

Also re-enables tests on ARM, fixes #5441.

Previously we were using `L2Unexpanded`/`L2SqrtUnexpanded`, which are
more costly.
Previously we were using `L2SqrtUnexpanded`, which is more costly.
Previously we were using `L2SqrtUnexpanded`, which is more costly.
Previously we were erroneously missing this plumbing, leaving the
`metric` and `metric_arg` as the defaults when `nn_descent` is used. In
the long run we should redo how the parameters are passed when
`nn_descent` is enabled to avoid this duplication, but for now fixing
the plumbing to be more correct seems fine.
At least on my aarch64 linux box these aren't failing anymore.
Copy link

copy-pr-bot bot commented Feb 7, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions bot added the Cython / Python Cython or Python issue label Feb 7, 2025
@jcrist jcrist added bug Something isn't working non-breaking Non-breaking change Cython / Python Cython or Python issue and removed Cython / Python Cython or Python issue labels Feb 7, 2025
@cjnolet
Copy link
Member

cjnolet commented Feb 13, 2025

/ok to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[BUG] segfault in UMAP pytests in ARM GHA jobs
2 participants