-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add TruncatedPrior
#779
Comments
Should I add TruncatedPrior here - https://github.com/bambinos/bambi/tree/main/bambi? |
I think it should go here - https://github.com/bambinos/bambi/tree/main/bambi/priors ; and I think you can take inspiration from the |
fixes bambinos#779 This function leverages the truncnorm distribution from the SciPy library to generate samples from a truncated normal distribution. You can adapt the function to other distributions by changing the import statement and parameters.
option 3 i guess is better as it seems simple and easy to implement then other ones, let me know your review then i'll add option 3 in the priors;) |
So users can truncate any distribution
Edit after seeing #875
We want to give users the option to truncate any prior distribution. Under the hood, this should be done via
pymc.Truncated()
.I still don't know what this would look like, but I can throw the following ideas.
I think I prefer Option 3, but still I like how general Option 4 can be.
The text was updated successfully, but these errors were encountered: