-
Notifications
You must be signed in to change notification settings - Fork 221
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
Closes #1213 added logpdf for BernoulliLogit #1214
Conversation
…cBernoulliLogit to distributions.jl
I'm not sure if separate types are necessary here, wouldn't just another constructor be sufficient? I also don't think one should define separate vector-valued distributions since one can define it easily as a product of univariate distributions (in fact, I think |
That is fair enough, agreed on the vector distributions, I did think it unnecessary but thought I would follow the lead of BinomialLogit, should I remove all of them then? And what do you mean by another constructor sorry? |
Codecov Report
@@ Coverage Diff @@
## master #1214 +/- ##
==========================================
- Coverage 65.64% 65.59% -0.06%
==========================================
Files 25 25
Lines 1278 1279 +1
==========================================
Hits 839 839
- Misses 439 440 +1
Continue to review full report at Codecov.
|
Just don't add VecBernoulliLogit, I'd say 😃
Sorry, I should have explained it better. I meant that maybe it would be sufficient to add the line BernoulliLogit(logitp::Real) = BinomialLogit(1, logitp) and export |
…inomialLogit(1, p) to distributions.jl
* Closes TuringLang#1213 added pdf and logpdf for BernoulliLogit and VecBernoulliLogit to distributions.jl * Closes TuringLang#1213 added constructor for BernoulliLogit to call BinomialLogit(1, p) to distributions.jl Co-authored-by: Hong Ge <[email protected]>
…Logit to distributions.jl