-
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
How to set fill_fixed_parameters
=True for petab parameter mappings?
#1448
Comments
Sorry for the late reply.
The linked issue is unrelated to
I don't recall that either. My guess would be: Before the change, pypesto was calling the amici/pypesto functions for filling parameter values according to the parameter mapping. The parameter mapping already set the values for the fixed parameters ( For anything based on the PEtab importer, changing
This is very suprising. I am pretty sure this was working at some point and that there were tests in place. Needs further investigation. |
So my current understanding is:
|
After a closer look: 1) I will try to get (2) fixed and will submit an effective test case shortly. |
I am pretty confident this never worked. |
For further background, see ICB-DCM#1448. We don't have to compute the full gradient in every model simulation. Some entries might not be required because of fixed parameter or some condition-specific objective parameter mapping. The former was supported (however, not tested), the latter was not supported. Now both are tested an supported. There was no good way to communicate the fixed parameters to AmiciCalculator where ExpData.plist gets set. Passing this information is currently only possible through the parameter mapping, based on which the required sensitivities are determined. Therefore, in addition to the general parameter mapping, there is now a parameter mapping that accounts for the fixed parameters. Not sure what could be a more elegant way to handle that.
For further background, see ICB-DCM#1448. We don't have to compute the full gradient in every model simulation. Some entries might not be required because of fixed parameter or some condition-specific objective parameter mapping. The former was supported (however, not tested), the latter was not supported. Now both are tested an supported. There was no good way to communicate the fixed parameters to AmiciCalculator where ExpData.plist gets set. Passing this information is currently only possible through the parameter mapping, based on which the required sensitivities are determined. Therefore, in addition to the general parameter mapping, there is now a parameter mapping that accounts for the fixed parameters. Not sure what could be a more elegant way to handle that.
For further background, see ICB-DCM#1448. We don't have to compute the full gradient in every model simulation. Some entries might not be required because of fixed parameter or some condition-specific objective parameter mapping. The former was supported (however, not tested), the latter was not supported. Now both are tested an supported. There was no good way to communicate the fixed parameters to AmiciCalculator where ExpData.plist gets set. Passing this information is currently only possible through the parameter mapping, based on which the required sensitivities are determined. Therefore, in addition to the general parameter mapping, there is now a parameter mapping that accounts for the fixed parameters. Not sure what could be a more elegant way to handle that.
For further background, see #1448. We don't have to compute the full gradient in every model simulation. Some entries might not be required because of fixed parameter or some condition-specific objective parameter mapping. The former was supported (however, not tested), the latter was not supported. Now both are tested an supported. There was no good way to communicate the fixed parameters to AmiciCalculator where ExpData.plist gets set. Passing this information is currently only possible through the parameter mapping, based on which the required sensitivities are determined. Therefore, in addition to the general parameter mapping, there is now a parameter mapping that accounts for the fixed parameters. Not sure what could be a more elegant way to handle that.
So there is
pyPESTO/pypesto/petab/importer.py
Line 476 in ead29b3
Now the best way that I found to fix this is
which is not great, because it requires me to have pretty deep knowledge of the code and requires a couple more lines of code than what I had hoped for.
Is there any specific reason why we are setting
fill_fixed_parameters=True
? If there is could we either expose this option to the user or set smarter defaults when this is really necessary?Looks like this was introduced in #912, but seems unrelated to the linked issue #882. Unclear what "fix warning from fixed overrides" refers to.
The text was updated successfully, but these errors were encountered: