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 bug in MASE initial n_components #768

Merged
merged 4 commits into from Apr 16, 2021
Merged

Fix bug in MASE initial n_components #768

merged 4 commits into from Apr 16, 2021

Conversation

bdpedigo
Copy link
Collaborator

@bdpedigo bdpedigo commented Apr 16, 2021

  • Does this PR add any new dependencies?
  • Does this PR modify any existing APIs?
    • Is the change to the API backwards compatible?
  • Have you built the documentation (reference and/or tutorial) and verified the generated documentation is appropriate?

Reference Issues/PRs

None

What does this implement/fix? Briefly explain your changes.

  • Fixes a bug where if n_components was specified and > int(np.ceil(np.log2(np.min(self.n_vertices_)))) then the initial embeddings were too small for what the user wanted
  • removed unused imports

Any other comments?

Also avoids computing too many dimensions if not using automatic dimensionality selection

@bdpedigo bdpedigo requested a review from j1c April 16, 2021 13:59
@netlify
Copy link

netlify bot commented Apr 16, 2021

Deploy preview for graspologic ready!

Built with commit 13785ca

https://deploy-preview-768--graspologic.netlify.app

@bdpedigo bdpedigo added this to Needs Triage in PRs via automation Apr 16, 2021
@bdpedigo bdpedigo moved this from Needs Triage to Ready For Merge in PRs Apr 16, 2021
@bdpedigo bdpedigo merged commit 0653909 into dev Apr 16, 2021
PRs automation moved this from Ready For Merge to Done Apr 16, 2021
@bdpedigo bdpedigo deleted the mase-n_components-bug branch April 16, 2021 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PRs
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants