-
-
Notifications
You must be signed in to change notification settings - Fork 123
Added _lupdf docs for normal distribution #277
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
Conversation
this is a good way to do it. do you want a script to do this automatically on a file by file basis? |
Ah this should be easy enough to copy paste. I'll go ahead and finish it up that way. |
@mitzimorris actually I changed my mind on how to do this. Can you look again? I think this is closer to what was there previously. |
@@ -1,4 +1,4 @@ | |||
# Conventions for Probability Functions | |||
# Probability Function Conventions |
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.
please don't change chapter names - it messes up how we do the linking into latest version.
you should also change the filename back to how it was, since filename matches chapter name.
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.
Oh okay, can change this back. Does that mean the new way of doing the _lupdf
s is okay?
I ran into some I did some grepping:
I'm gonna change the |
|
||
`real` **`bernoulli_logit_glm_lpmf`**`(int y | matrix x, real alpha, vector beta)`<br>\newline | ||
The log Bernoulli probability mass of y given chance of success | ||
`inv_logit(alpha + x * beta)`, where the same intercept `alpha` and dependant variable value `y` are used |
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.
I cut a lot of the text here about the size constraints. It's unnecessary I think. We aren't explicit about size constraints in other distributions.
@rok-cesnovar could you have a look through these? I've done some other cleanup but I think this is vaguely what we want. Easy to go through and change something so don't hesitate to ask. |
The changes look good to me! I think this is enough info. Thanks. |
Ready for review! @jgabry here's (edit: an example of) what we did for functions guide: Somewhat monotonous but not too hard to change things if you think we should add/remove something. |
@bbbales2 Thanks. What should I be looking at in |
Ooops. I was trying to be convenient and failed. If it doesn't work you'll have to build your own. Just showing how we added _lupdf/_lupmf to the function reference. Basically we did it brute force. |
Thanks that one worked, thanks. I think this looks good for the function documentation. It seems reasonable to just have the _lupdf function right after the _lpdf one and the explanation accompanying it is pretty clear. So this all looks good. I do think we should add more about this stuff in the user guide but we don't have to hold this up for that. I think it's worth going ahead and merging the function reference documentation that you already have here. |
If `x` and `y` are data (not parameters) this function can be executed on a GPU. | ||
`inv_logit(alpha + x * beta)`. | ||
|
||
If `x` and `y` are data, this function can be executed on a GPU. |
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.
@rok-cesnovar we can cut this line out now right?
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.
Indeed we can yes.
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.
Should I remove them for all distributions? (please say yes)
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.
Sir yes sir!
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.
Sir I will remove all of these messages sir!
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.
Sir messages removed sir
Sir edit: sir
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.
I looked this over and seems good! Only thing I want to check is whether the line
If `x` and `y` are data (not parameters) this function can be executed on a GPU.
for the glm functions on gpus is needed anymore since the new glm's I think can take in parameters for those values
@SteveBronder I removed the GPU things, so merge if yah think it looks alright and send @rok-cesnovar a note to do the announcement |
Can we merge. We need to rebuild html before the announcement. |
@SteveBronder are my latest changes good? |
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.
Good!
Submission Checklist
Summary
Three things:
I moved the probability conventions section out from under the discrete distributions section. It is now below
Deprecated functions
which seems a bit weird, but it is close to the probability sections without being in one of them.When I used the section link syntax
[linkname](#sectionname)
the link bar on the left ended up in the wrong place so I ended up linking to the html file directly via[linkname](sectionname.html)
and that seemed to work.Added a line for
_lupdf
/_lupmf
for all the distributionsCopyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses: