-
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
NegLogParameterPriors does not evaluate prior density at fixed params #1413
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1413 +/- ##
===========================================
- Coverage 83.92% 83.90% -0.03%
===========================================
Files 160 160
Lines 13061 13067 +6
===========================================
+ Hits 10962 10964 +2
- Misses 2099 2103 +4 ☔ View full report in Codecov by Sentry. |
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, I think it looks fine, but since we have prior_list
, we can overwrite immediately, instead of recomputing it every time it's accessed.
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Co-authored-by: Dilan Pathirana <59329744+dilpath@users.noreply.github.com>
Thanks! Sorry for the mask suggestion, I wasn't familiar with the code |
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.
Nice, a test for this would be good. Also not entirely sure whether it is relevant, but the problem has a function fix_parameters
, for this it should be accounted as well? 🤔
That is relevant, but the function calls |
After discussing this issue in #1412, we will not make the prior aware of fixed parameters. Instead, users should specifiy priors correctly in the PEtab problem. In this way, we will allow maximum flexibility. |
Based on #1412
Making the
NegLogParameterPriors
aware of fixed parameters. The density is not evaluted for those. Moreover, the petab importet is updated to indicate the fixed parameters while creating the prior.Question: should this argument stay optional? If priors are not given for fixed parameters, no problem would occure. The problem only occurs when priors are given and parameters fixed.