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

Allow a low memory option for index construction #76

Merged
merged 4 commits into from
Sep 9, 2019
Merged

Conversation

lmcinnes
Copy link
Owner

@lmcinnes lmcinnes commented Sep 6, 2019

This splits out the internals of of the NNdescent loop to either use or skip the use of the tried cache depending on whether the user selects a low_memory option which defaults to False.

Copy link
Collaborator

@jlmelville jlmelville left a comment

Choose a reason for hiding this comment

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

LGTM except for my question about the tried default arguments.

Unrelated to the current changes, but sparse_nndescent.py imports numpy and tau_rand but doesn't seem to do anything with them.

test_nn_decent_with_n_jobs_minus_one fails for me, but I see it's not on master yet either, so I'm not going to worry about that for this PR.

pynndescent/sparse_nndescent.py Outdated Show resolved Hide resolved
pynndescent/pynndescent_.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@jlmelville jlmelville left a comment

Choose a reason for hiding this comment

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

LGTM

@lmcinnes lmcinnes merged commit 1b28d19 into master Sep 9, 2019
@lmcinnes
Copy link
Owner Author

lmcinnes commented Sep 9, 2019

Thanks for the suggestions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants