Repository navigation
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1238 +/- ##
==========================================
- Coverage 86.08% 78.16% -7.93%
==========================================
Files 114 117 +3
Lines 8662 8679 +17
==========================================
- Hits 7457 6784 -673
- Misses 1205 1895 +690
Flags with carried forward coverage won't be shown. Click here to find out more.
|
janfb
reviewed
Aug 27, 2024
janfb
left a comment
Contributor
There was a problem hiding this comment.
This is great! I added some comments and found one typo 🧐
2 tasks done
2 tasks done
michaeldeistler
added a commit
that referenced
this pull request
Aug 28, 2024
* 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
added a commit
that referenced
this pull request
Aug 28, 2024
* 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
added a commit
that referenced
this pull request
Aug 28, 2024
* 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
added a commit
that referenced
this pull request
Aug 28, 2024
* refactor: move all inference methods into `trainers` folder (#1238) * 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 * Rename SN(P)E -> N(P)E in tests * Rename SN(P)E -> N(P)E in all tutorials * Rename SN(P)E -> N(P)E in all documentation * Remove `infer` method from docs * Remove simulate_for_sbi from tutorial * update implemented methods * rename in tests * fixup * modify tutorial
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.
File structure
Renaming of inference classes
Breaking change! The following will no longer work:
It is now:
We are raising an explicit error here. For this, I created a dummy
sbi/inference/snpe/__init__.py. We can remove this in a future release.If users directly import from
sbi.inferencethen all is good.TODO
I still have to update all tutorials and tests to use
NPEnames instead ofSNPE. However, this is strictly optional because the aliases work well. To demonstrate that the aliases work, I would prefer to merge this PR before changing tests and tutorials, and then make a separate PR.