Does model.logp(..., jacobian=False) do anything? #8114
|
So I tried l1 = model.logp(jacobian=True)
l2 = model.logp(jacobian=False)and l1 and l2 are identical graphs except for the name of the head node. I looked into the source code but haven't found how Is this some sort of legacy from Also, the docstring for model.logp is mixed up. |
Answered by
ricardoV94
Feb 19, 2026
Replies: 1 comment 5 replies
|
Yes it does something, perhaps you have a model without transforms (like just normal variates). Try with with pm.Model() as m:
x = pm.Exponential("x", 1)Which has a log transform on x and a jacobian correction |
5 replies
Answer selected by
avm19
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes it does something, perhaps you have a model without transforms (like just normal variates). Try with
Which has a log transform on x and a jacobian correction