Skip to content

Added lognormal distribution #353

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

Merged
merged 1 commit into from
Oct 4, 2013
Merged

Added lognormal distribution #353

merged 1 commit into from
Oct 4, 2013

Conversation

fonnesbeck
Copy link
Member

Included a test that works for everything but check_int_to_1, so I added a False argument to the test call. Not sure why this is -- I confirmed that I have the correct log-likelihood manually.

@@ -231,6 +231,54 @@ def logp(value):


@tensordist(continuous)
def Lognormal(mu=0, tau=1):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be called Lognormal or LogNormal? I don't have a strong preference

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it as Lognormal for consistency with PyMC 2. No preference otherwise.

@jsalvatier
Copy link
Member

Looks good, merge when it passes tests.

@fonnesbeck
Copy link
Member Author

I noticed that Tpos also excludes the integration test. Have you had problems with the test as well?

fonnesbeck pushed a commit that referenced this pull request Oct 4, 2013
Added lognormal distribution
@fonnesbeck fonnesbeck merged commit 1f37e32 into pymc3 Oct 4, 2013
@fonnesbeck fonnesbeck deleted the lognormal branch October 4, 2013 18:51
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.

2 participants