Skip to content
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

Merged
merged 12 commits into from
Sep 10, 2020
Merged

1210 truncated normal #1213

merged 12 commits into from
Sep 10, 2020

Conversation

rccreswell
Copy link
Contributor

Adds the truncated normal distribution as a prior, for #1210

@codecov
Copy link

codecov bot commented Sep 9, 2020

Codecov Report

Merging #1213 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1213   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           83        83           
  Lines         8654      8681   +27     
=========================================
+ Hits          8654      8681   +27     
Impacted Files Coverage Δ
pints/__init__.py 100.00% <ø> (ø)
pints/_log_priors.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dca9e0e...964d781. Read the comment docs.

Copy link
Collaborator

@ben18785 ben18785 left a 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!

@ben18785
Copy link
Collaborator

@MichaelClerx Can you have a look? I'm happy for this to go in.

Copy link
Member

@MichaelClerx MichaelClerx left a 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!)

@MichaelClerx
Copy link
Member

Since the NormalLogPrior is deprecated in favour of Gaussian, should this be a TruncatedGaussianLogPrior ?

@MichaelClerx
Copy link
Member

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?

@fcooper8472
Copy link
Member

Looks good to me!

@ben18785
Copy link
Collaborator

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).

@MichaelClerx
Copy link
Member

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!

@MichaelClerx MichaelClerx self-requested a review September 10, 2020 12:15
@rccreswell
Copy link
Contributor Author

rccreswell commented Sep 10, 2020

I just made two small changes: fixing that other heading in the log priors notebook, and adding a test for inputs at the boundary

Copy link
Collaborator

@ben18785 ben18785 left a 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.

@ben18785 ben18785 merged commit 8697249 into master Sep 10, 2020
@rccreswell rccreswell deleted the 1210-truncated-normal branch September 10, 2020 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants