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

240 review nncell and nncombinatorial models + Fixed SAN bugs #269

Merged
merged 13 commits into from
Feb 20, 2024

Conversation

gbg141
Copy link
Member

@gbg141 gbg141 commented Feb 15, 2024

This pull request addresses the following points:

  • Refactorization of cell and combinatorial models, decoupling the readout function from their implementation (analogous to what was already implemented for simplicial and hypergraph architectures, PRs Simplicial checks #250 and Hypergraph checks #249). Models, notebooks and tests have been updated.
  • Solved two bugs in SAN implementation --it was not possible to train it on GPU.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (aa07026) 97.45% compared to head (cb7f074) 97.40%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #269      +/-   ##
==========================================
- Coverage   97.45%   97.40%   -0.05%     
==========================================
  Files          58       58              
  Lines        2120     2084      -36     
==========================================
- Hits         2066     2030      -36     
  Misses         54       54              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gbg141 gbg141 requested review from mhajij and ninamiolane February 16, 2024 00:39
.gitignore Outdated Show resolved Hide resolved
pyproject.toml Outdated
Comment on lines 124 to 128
exclude = [
'\.undocumented_method$',
'\.__repr__$',
'\.__init__$',
]
Copy link
Member

Choose a reason for hiding this comment

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

Please revert this, __init__ and __repr__ should be documented.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have reverted it, but currently __init__ methods are not documented in TopoModelX. This results in failing the tests for any class that you modify.

topomodelx/nn/cell/can.py Show resolved Hide resolved
topomodelx/nn/cell/can.py Outdated Show resolved Hide resolved
topomodelx/nn/cell/cwn.py Outdated Show resolved Hide resolved
topomodelx/nn/combinatorial/hmc.py Outdated Show resolved Hide resolved
topomodelx/nn/combinatorial/hmc.py Outdated Show resolved Hide resolved
@gbg141 gbg141 requested a review from ffl096 February 16, 2024 09:31
@ninamiolane ninamiolane merged commit a158cbf into main Feb 20, 2024
23 of 24 checks passed
@ffl096 ffl096 deleted the 240-review-nncell-and-nncombinatorial-models branch February 20, 2024 15:59
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.

3 participants