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

Expose threshold in louvain #103

Merged
merged 8 commits into from
Dec 13, 2023
Merged

Expose threshold in louvain #103

merged 8 commits into from
Dec 13, 2023

Conversation

jpintar
Copy link
Contributor

@jpintar jpintar commented Dec 3, 2023

feat(louvain): expose additional parameter

  1. expose threshold parameter (unavailable in Scanpy)
  2. pass it to cuGraph via culouvain
  3. in culouvain call, replace deprecated max_iter with synonymous max_level
  4. save values of threshold and n_iterations (previously omitted) to .uns["louvain"]["params"]
  5. add threshold description to docstring and make multiple small improvements

N.b. cuGraph does not provide a parameter to set the random state as of commit 1e446c4. Revisit if situation changes.

Resolves second half of #101

jpintar and others added 2 commits December 2, 2023 19:52
feat(louvain): expose additional parameter

1) expose 'threshold' parameter (unavailable in Scanpy)
2) pass it to cuGraph via 'culouvain'
3) in 'culouvain' call, replace deprecated 'max_iter' with synonymous 'max_level'
4) save values of 'threshold' and 'n_iterations' (previously omitted) to '.uns["louvain"]["params"]'
5) add 'threshold' description to docstring and make multiple small improvements

N.b. cuGraph does not provide a parameter to set the random state as of commit 1e446c4. Revisit if situation changes.
@Intron7 Intron7 added the run-gpu-ci runs GPU CI label Dec 3, 2023
Copy link
Member

@Intron7 Intron7 left a comment

Choose a reason for hiding this comment

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

Please add a release note.

Intron7 and others added 4 commits December 12, 2023 16:47
changed neighbors_key to str
Release note describing addition of `threshold` parameter to `louvain`
Include 0.9.4.md
@jpintar jpintar requested a review from Intron7 December 13, 2023 00:05
@Intron7 Intron7 enabled auto-merge (squash) December 13, 2023 00:19
@Intron7 Intron7 merged commit e989c3f into scverse:main Dec 13, 2023
3 checks passed
@jpintar jpintar deleted the louvain-fix branch December 13, 2023 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-gpu-ci runs GPU CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants