-
Notifications
You must be signed in to change notification settings - Fork 34
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
1210 truncated normal #1213
1210 truncated normal #1213
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1213 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 83 83
Lines 8654 8681 +27
=========================================
+ Hits 8654 8681 +27
Continue to review full report at Codecov.
|
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.
@rcw5890 Great job -- a first for me but I have no critical feedback. Good to go for me!
@MichaelClerx Can you have a look? I'm happy for this to go in. |
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.
"Convert prior samples to be uniform within unit cube" --> Converting
(Sorry, just noticed that's not actually you!)
Since the NormalLogPrior is deprecated in favour of Gaussian, should this be a TruncatedGaussianLogPrior ? |
I remember @fcooper8472 did some work on ensuring the log priors behaved in a consistent and well-defined way at discontinuous boundary points, and were tested for that. Is this consistent with that work? |
Looks good to me! |
Happy with either truncated normal or truncated Gaussian (admit the last one is more consistent but I slightly regret deprecating the normal word -- this was my silly decision, I think). |
We could merge it and open another ticket to discuss the naming? As long as it's fixed before the next release I'm happy. Code looks great! |
I just made two small changes: fixing that other heading in the log priors notebook, and adding a test for inputs at the boundary |
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.
@rcw5890 Looks great! Merging.
Adds the truncated normal distribution as a prior, for #1210