-
Notifications
You must be signed in to change notification settings - Fork 590
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
Added Half-Normal & Log-Normal Distributions #1063
Conversation
Signed-off-by: Max <[email protected]>
Signed-off-by: mschrader15 <[email protected]>
Nice, thanks. I'll look into merging this soon. |
There are two ways to initialize this object. The first is to pass in | ||
the tensor of probablity parameters, at which point they can immediately be | ||
used. The second is to not pass in the rate parameters and then call | ||
either `fit` or `summary` + `from_summaries`, at which point the probability |
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.
Nit: summary -> summarize
There are two ways to initialize this object. The first is to pass in | ||
the tensor of probablity parameters, at which point they can immediately be | ||
used. The second is to not pass in the rate parameters and then call | ||
either `fit` or `summary` + `from_summaries`, at which point the probability |
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.
Ditto
Signed-off-by: Max <[email protected]>
Sorry for the delay in approval. Would you mind adding in unit tests, of the style of the other distributions? |
Otherwise this LGTM |
I had a use case for a mixture model of half-normal & lognormal distributions. I did a quick implementation by sub-classing the normal distribution.
Missing tests, but this suffices for my use-case