-
Hi, I'm looking for an example of a model (derived from Model), which provides not only the function itself, but also the derivatives with respect to the parameters. Is there any such example available? Is this functionality already implemented in the Model class? In the docs, I found only one example, which does not use the Model class, here. Please note that the model which I have in mind should use parameter constraints, too. D.L. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@lellid I believe we do not have an example of that. In principle, it would be no different than using with Minimizer. For all cases using lmfit, providing a jacobian function is complicated if bounds are placed on Parameters. To handle that, the jacobian function would have to include the effect of the bounds transformation by chaining the derivatives. I think this would not be impossible, and might even be "not hard", but I don't know of anyone who has actually done this, or if it could be automated easily. |
Beta Was this translation helpful? Give feedback.
-
Hi Matt, thanks for the answer. |
Beta Was this translation helpful? Give feedback.
@lellid I believe we do not have an example of that. In principle, it would be no different than using with Minimizer. For all cases using lmfit, providing a jacobian function is complicated if bounds are placed on Parameters. To handle that, the jacobian function would have to include the effect of the bounds transformation by chaining the derivatives. I think this would not be impossible, and might even be "not hard", but I don't know of anyone who has actually done this, or if it could be automated easily.