Warning if Parameter boundary is reached during fit. #868
-
Hi, Thanks in advance! Julian |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The information is shown in the fit report, bit there is property that has this information. It should also be fairly straightforward to check yourself: just compare the fitted value to the boundaries you have set. On Apr 24, 2023, at 9:17 AM, Julian-Hochhaus ***@***.***> wrote:
Hi,
I wonder if there is some property of ModelResult or MinimizerResult which holds the information if one of the parameters reached one of its boundaries.
Reading the docs as well as the code, I was not able to find such a property. If there truly is no option, what is the best way to check if one of the parameters of a fit result reached a boundary? Iterating all parameters and checking value against min/max value?
Thanks in advance!
Julian
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@Julian-Hochhaus @reneeotten we check with If we have those properties, would we then want to add methods to "lift all boundaries that I hit" or "set vary=False for all parameters at initial values"? There are probably lots of possibilities there. I doubt we could capture all of them. In the face of such doubt, simply explaining (maybe FAQ, maybe we need a User Guide) what might be done seems OK. I lean toward "it's not hard to check and act appropriately downstream". But, I could be persuaded. |
Beta Was this translation helpful? Give feedback.
@Julian-Hochhaus @reneeotten we check with
np.allcose(par.value, par.min) or np.allcose(par.value, par.max)
inside offit_report()
. I could be convinced that we want to add a property for that (and maybe the other thing we also check fornp.allcose(par.value, par.init_value)
), but it doesn't seem too hard as a downstream check.If we have those properties, would we then want to add methods to "lift all boundaries that I hit" or "set vary=False for all parameters at initial values"? There are probably lots of possibilities there. I doubt we could capture all of them. In the face of such doubt, simply explaining (maybe FAQ, maybe we need a User Guide) what might be done seems OK. I lean tow…