-
Notifications
You must be signed in to change notification settings - Fork 47
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
Calling prior in sampling with fixed parameters does not work #1378
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1378 +/- ##
===========================================
+ Coverage 84.48% 84.52% +0.03%
===========================================
Files 157 157
Lines 12958 12956 -2
===========================================
+ Hits 10948 10951 +3
+ Misses 2010 2005 -5 ☔ View full report in Codecov by Sentry. |
I reverted the inital fix since I found a better solution. If you now call |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me for now 👍
I imagine this will be obsolete if #1325 is resolved by implementing objective type flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting.
Think this is a good fix to it.
After discussion, @PaulJonasJost and I removed the deepcopy of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM
The
NegLogParameterPriors
objective does not properly account for fixed parameters when invoked during sampling. When it's integrated into theAggregatedObjective
, optimization functions correctly; however, issues arise during sampling becausecall_unprocessed
is triggered with the reduced parameter vector, causing a failure.Maybe there is a better way to fix this, as I just updated the call of
neglogprior
, but I feel this might break stuff during optimzation.