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

Fix unit tests #1031

Merged
merged 10 commits into from
Aug 21, 2023
Merged

Fix unit tests #1031

merged 10 commits into from
Aug 21, 2023

Conversation

hamelin
Copy link
Contributor

@hamelin hamelin commented Jul 21, 2023

This PR fixes unit tests that had decayed because of some unsound warning handling and deprecations in dependency calling contracts. It also refactors the umap.spectral comprehensively, removing code duplication and improving the legibility of alternative approaches to spectral initialization of the low-space embedding.

Also changed handling of SciPy version comparisons so we leverage tuples
of integers instead of strings. This does not break now that the SciPy
minor has gone over 1.9.
The way warnings were caught in order to report issues with spectral
initialization, warnings of deprecation in dependency code forced the
breakage of our own unit tests.
Now have only one single-component spectral initialization routine.
Also fix an issue with how the random_state parameter is used
incoherently between clients.
@hamelin hamelin marked this pull request as draft July 21, 2023 21:54
@hamelin
Copy link
Contributor Author

hamelin commented Jul 21, 2023

As I am going on vacation, let's park this as a draft until I'm back.

@lmcinnes lmcinnes marked this pull request as ready for review August 17, 2023 20:34
@lmcinnes
Copy link
Owner

Still some failing tests; they seem to have dropped off from azure; Should I just merge as is and we can fix the last few tests if they are still failing?

@hamelin
Copy link
Contributor Author

hamelin commented Aug 21, 2023

One of the remaining issues I know is fixed by @lmcinnes (who is waiting on this PR to merge it). The other one has to do with the numerical behaviour of the spectral initializer on MacOS. I'll inspect this one out of this PR, so I call a merge of this.

@lmcinnes lmcinnes merged commit 8e54853 into lmcinnes:master Aug 21, 2023
0 of 13 checks passed
@hamelin hamelin deleted the fix-unit-tests branch August 21, 2023 16:31
@flying-sheep flying-sheep mentioned this pull request Jul 5, 2024
3 tasks
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