Skip to content

Wrong logp function in ElemwiseCategoricalStep #2879

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

Closed
junpenglao opened this issue Mar 1, 2018 · 2 comments
Closed

Wrong logp function in ElemwiseCategoricalStep #2879

junpenglao opened this issue Mar 1, 2018 · 2 comments

Comments

@junpenglao
Copy link
Member

junpenglao commented Mar 1, 2018

cc @twiecki, related #1563

It seems that the logp being evaluated in ElemwiseCategoricalStep is incorrect:
ElemwiseCategorical evaluate the logp of the RV and its parent:
https://github.com/pymc-devs/pymc3/blob/fde52a4a69be1b0887a2f7861801fb48c941bbe6/pymc3/step_methods/gibbs.py#L39-L40
https://github.com/pymc-devs/pymc3/blob/fde52a4a69be1b0887a2f7861801fb48c941bbe6/pymc3/step_methods/gibbs.py#L53-L56

Instead, it should evaluate on the conditional logp only (as in Gibbs sampling).

@junpenglao
Copy link
Member Author

cc @rrkarim

@ricardoV94
Copy link
Member

Method was removed in #4701

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

No branches or pull requests

2 participants