fix: fix modulatity inconsistency by using Weighted_Adjacency directly#4113
Draft
flying-sheep wants to merge 2 commits intomainfrom
Draft
fix: fix modulatity inconsistency by using Weighted_Adjacency directly#4113flying-sheep wants to merge 2 commits intomainfrom
flying-sheep wants to merge 2 commits intomainfrom
Conversation
3 tasks
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Benchmark changes
Comparison: https://github.com/scverse/scanpy/compare/6af627e3de1d7ee2468ea717f6b965bc4a492d89..a89d635b78223c14ccb423b20f84115f4da301bc More details: https://github.com/scverse/scanpy/pull/4113/checks?check_run_id=75040758121 |
Member
Author
|
OK wild, I didn’t expect this to be slower wtf. Maybe just a fluke? /edit: tried the new Python 3.15 profiler from (for
|
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As pointed out by @jpintar,
sc._utils.get_igraph_from_adjacency(..., directed=False)created duplicate edges. This version switches to the upstream API directly which doesn’t do that, resulting in extremely small differences in connectivity scores compared to before.If we see some performance gain, I think it’s worth the early breakage. I think scanpy 1.13 will have a few smaller breaking changes anyway …
sc.tl.leidenandsc.metrics.modularityleads to modularity mismatch #4099