Repository navigation
Fix 921 SNLE SNRE code duplication - #954
Merged
Merged
Conversation
janfb
reviewed
Feb 21, 2024
michaeldeistler
left a comment
Contributor
There was a problem hiding this comment.
Thanks! Small comment below, but feel free to merge.
Contributor
|
|
janfb
force-pushed
the
921-snle-snre-code-duplication
branch
from
February 23, 2024 09:30
366b7c6 to
d9be24b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #954 +/- ##
==========================================
- Coverage 76.09% 76.04% -0.05%
==========================================
Files 80 80
Lines 6341 6329 -12
==========================================
- Hits 4825 4813 -12
Misses 1516 1516
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Fix for #921.
Moved
append_simulationstobase.py. There is some method specific arguments given to thenle_nre_apt_msg_on_invalid_xfunction, but purely for logging.So I added an algorithm argument in
base.pyand overwite it for the specific method in thesuper()call.The
nle_nre_apt_msg_on_invalid_xfunction makesappend_simulationsspecific to SLNE, SNRE. So an alternative would be to have an intermediate object betweenNeuralInferenceand the estimators to make this clear?