-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Fixes the difference b/w logpt and logp_nojac #3398
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
|
@junpenglao please review. |
| def logp_nojact(self): | ||
| """Theano scalar of log-probability of the model""" | ||
| """Theano scalar of log-probability of the model but without the jacobian | ||
| if transformed Random Variable is presented. |
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.
Does this mean that the Jacobian will be present if there are no transformed random variables? That is how I understand the sentence.
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.
If there are no transformed variables there is no need for Jacobian correction, hence logp_nojact will be the same as logpt
This should be rephrased to make it clearer indeed.
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.
| if transformed Random Variable is presented. | |
| if transformed Random Variable is presented. | |
| Note that If there is no transformed variable in the model, logp_nojact | |
| will be the same as logpt as there is no need for Jacobian correction. |
| def logp_nojact(self): | ||
| """Theano scalar of log-probability, excluding jacobian terms.""" | ||
| """Theano scalar of log-probability of the model but without the jacobian | ||
| if transformed Random Variable is presented. |
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.
| if transformed Random Variable is presented. | |
| if transformed Random Variable is presented. | |
| Note that If there is no transformed variable in the model, logp_nojact | |
| will be the same as logpt as there is no need for Jacobian correction. |
| def logp_nojact(self): | ||
| """Theano scalar of log-probability of the model""" | ||
| """Theano scalar of log-probability of the model but without the jacobian | ||
| if transformed Random Variable is presented. |
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.
| if transformed Random Variable is presented. | |
| if transformed Random Variable is presented. | |
| Note that If there is no transformed variable in the model, logp_nojact | |
| will be the same as logpt as there is no need for Jacobian correction. |
|
@divyanshu132 Do you still follow up on this question? If you don't have time, I can submit it again on your pr. I think this problem is very small, but changing it as soon as possible is very friendly to the user. |
|
@chang111 Actually I'm busy with some other organization, feel free to take it! |
|
@divyanshu132 Thanks You very much. I will push pr through your branch for you have made so much attempt for it. |
|
@junpenglao Can you tell me how to pull request on other's branch. I am sorry for that I do not know how to do it. |
|
fork the branch |
|
Thank you, I will try it today. |
Fixes #3372
Previously:
Now: