-
Notifications
You must be signed in to change notification settings - Fork 230
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
Wrapper Prior
/ Distribution
class
#749
Comments
Yes! I love this idea! These dictionaries are growing up a lot and becoming hard to maintain! (also ... Pydantic haha) |
Big fan of pydantic. How does kwargs in intialization method work though? Some initialization keys would be same:
Then parameter specific would change and might be handled with **kwargs |
Any thoughts here @ColtAllen |
Think it would be interesting to also wrap it into #706 mu = Prior("Normal", mu=0, sigma=1).constrain(lower=5, upper=10)
mu.kwargs # {"mu": 7.5, "sigma": 1.25} |
It's certainly more convenient than dealing with a bunch of nested dicts in a custom model config. Is this an issue unique to |
I think it could definitely be used elsewhere. I think it can start here, can be pitched to larger PyMC group, then go from there |
Personally don't like writing the priors in big dictionaries. Inspired here by the bambi API
Honestly think this will be way shorted than dictionaries plus bring in goodies like:
pm
moduleThis could be a documented submodule and would help demystify what goes in dictionary instead of any type of key!
This can also support post creation transformations. For instance:
And some support for to and from dictionary for the serialization requirement.
Just some thoughts after typing out many large dictionaries in #747
CC: @carlosagostini @juanitorduz
The text was updated successfully, but these errors were encountered: