Skip to content

Rename SN(P)E -> N(P)E in tests, tutorials, and docs - #1239

Merged
michaeldeistler merged 10 commits into
mainfrom
inference-rename-tutorial
Aug 28, 2024
Merged

michaeldeistler merged 10 commits into
mainfrom
inference-rename-tutorial

Conversation

@michaeldeistler

Copy link
Copy Markdown
Contributor

Follow-up to #1238

@michaeldeistler
michaeldeistler force-pushed the inference-rename-tutorial branch 3 times, most recently from bde0ee6 to 796801c Compare August 28, 2024 07:36
@michaeldeistler
michaeldeistler requested a review from janfb August 28, 2024 07:36
@michaeldeistler michaeldeistler changed the title Rename SN(P)E -> N(P)E in tests Rename SN(P)E -> N(P)E in tests, tutorials, and docs Aug 28, 2024
@michaeldeistler
michaeldeistler force-pushed the inference-rename-tutorial branch from 796801c to 09da8fc Compare August 28, 2024 07:46
@codecov

codecov Bot commented Aug 28, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.16%. Comparing base (b46c7c5) to head (f989043).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1239      +/-   ##
==========================================
- Coverage   86.05%   78.16%   -7.90%     
==========================================
  Files         117      117              
  Lines        8672     8679       +7     
==========================================
- Hits         7463     6784     -679     
- Misses       1209     1895     +686     
Flag Coverage Δ
unittests 78.16% <100.00%> (-7.90%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
sbi/inference/trainers/npe/npe_a.py 63.91% <100.00%> (-27.40%) ⬇️

... and 27 files with indirect coverage changes

@janfb janfb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks hunting down all these changes! Added a couple of comments to fix.

Overall, I am not so happy about the entire renaming, let's discuss.

Comment thread docs/docs/reference/inference.md Resolved
Comment thread docs/docs/reference/inference.md Resolved
Comment thread tests/linearGaussian_snpe_test.py Resolved
Comment thread tutorials/07_sensitivity_analysis.ipynb Resolved
Comment thread tutorials/07_sensitivity_analysis.ipynb Resolved
Comment thread tutorials/16_implemented_methods.ipynb Resolved
@michaeldeistler
michaeldeistler requested a review from janfb August 28, 2024 11:54

@janfb janfb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! Thx 🙏

* move all inference methods into `trainers` folder

* remove the "S" from all inference methods

* Rename FMPE

* All imports are fixed now

* Add dummy files to snpe/snre/snle folders to raise an explicit error

* formatting

* feedback from review
@michaeldeistler
michaeldeistler force-pushed the inference-rename-tutorial branch from d061972 to abe1289 Compare August 28, 2024 12:41
@michaeldeistler
michaeldeistler merged commit 2bcbcec into main Aug 28, 2024
@michaeldeistler
michaeldeistler deleted the inference-rename-tutorial branch August 28, 2024 13:41
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.

2 participants