Parameter Scaling for optimization and simulation. #567
-
|
I everyone!! In the PEtab documentation it says: "parameterScale is the scale on which parameters are estimated". For what I have understood, prior to the optimization process: I sample the starting point (i.e., the values for the free parameters in the parameter table), then I scale those values using the corresponding scaling transformation (lin|log|log10) and then I start the optimization. Let's call these values Now, at each optimization step I need to compute the observables which, in turn, requires the simulation of the model up to a specific horizon. The parameters of the model, that needs to be estimated, are initialized with The question is: before starting the simulation, do I have to reverse scale For example, let's assume that I have a parameter Is this correct or I have to use Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi! Yes, you're correct, it should be the unscaled values for simulation. It sounds like you're implementing PEtab for your workflow. If you are using the
|
Beta Was this translation helpful? Give feedback.
Hi! Yes, you're correct, it should be the unscaled values for simulation.
It sounds like you're implementing PEtab for your workflow. If you are using the
libpetab-pythonpackage, then there are helper methods there that you might find useful.Problem.(un)scale_parameters: https://github.com/PEtab-dev/libpetab-python/blob/52d8ab190765ca543ea8978368392658e94b9789/petab/problem.py#L845-L891(un)scaleandmap_(un)scale: https://petab.readthedocs.io/projects/libpetab-python/en/latest/build/_autosummary/petab.parameters.html