-
Notifications
You must be signed in to change notification settings - Fork 1
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
Parameter class #19
Parameter class #19
Conversation
…s a dict of all parameters with a nominal value, and a method to take that dict and update with any new values (useful to always pass entire dict of parameters to likelihood)
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 @hammannr looks good! Added a nominal values property + class to update parameter values, I think this is useful to always pass all args to likelihood etc. that way (we can add limit checking next pass I guess)
@kdund if I understand correctly, your |
oops, sorry, @hammannr didn't realise I was duplicating. I do think it is neater to clean away Nones in the parameter call. feel free to remove what does not add anything |
@kdund I now went back to the call method, it should have all the functionality (in particular, if you parse Nones as kwargs they are just dropped). |
I would still have a method for it since that will be useful to put for the
generate_data function
…On Tue, Jun 20, 2023, 18:16 Robert Hammann ***@***.***> wrote:
@kdund <https://github.com/kdund> I now went back to the call method, it
should have all the functionality (in particular, if you parse Nones as
kwargs they are just dropped).
Also, I took your nice idea of a method to check whether a value is within
limit and implemented it already in the Parameter class as I think it
already makes sense there. I also added an exception in case one tries to
fix a value outside the fit params (I guess this was your intent, right?).
Let me know whether you think those changes fit your intended purpose! 😊
—
Reply to this email directly, view it on GitHub
<#19 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEAPFKPYFRG7Q5KF7AKT2VLXMIOLVANCNFSM6AAAAAAZNWCC2I>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Also solves #6 (forgot earlier). |
This adds the Parameter and Parameters classes, which simplify the handling of our parameters. Closes #13 and #18.
Some example code to play around with the Parameter & Parameters classes:
Simple examples:
load from config:
An updated example for the Gaussian model: