-
Notifications
You must be signed in to change notification settings - Fork 33
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
Add tensor centralities #600
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #600 +/- ##
==========================================
+ Coverage 93.21% 93.42% +0.20%
==========================================
Files 62 63 +1
Lines 4733 4912 +179
==========================================
+ Hits 4412 4589 +177
- Misses 321 323 +2 ☔ View full report in Codecov by Sentry. |
@ilyaamburg --- I rewrote the |
Thanks Nich. A few comments mainly about documentation. Let's see what @ilyaamburg has to say about your question too. |
Hey Nick, I am liking the new pairwise_incidence that uses combinations and defaultdict with set values, which should be fine, since the order does not matter as long as you end up taking one of each pair, and the order of the values does not matter either. The r and corresponding if statement should stay, though, because we only want self loops in the case l (= |e|) < r; that is, we do not want to add them if the hyperedge size is maximal. |
Co-authored-by: Maxime Lucas <[email protected]>
Co-authored-by: Maxime Lucas <[email protected]>
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@ilyaamburg --- I think I addressed all of your comments if you want to take a final look. From looking at the test coverage, it seems like the Also, could you provide docstrings in this comment thread briefly describing the two helper functions, We are almost there!! |
@nwlandry thanks so much for this! Hm, _get_gen_coef_fft_fast_array is really the workhorse that makes everything scale so I'm shocked it's not being called. It should get called whenever the hyperedge size is in the purple range:
def _get_gen_coef_fft_fast_array(edge_without_node, a, node, l, r):
|
Everything is now addressed, and so I will now merge this once tests pass. |
Added tensor methods to the centrality module. Fixes #505.
This PR also fixes Issue #616, where the
node_edge_centrality
was not converging correctly.