-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Check if logprob derivation works with specialized log1p
, log1mexp
, expm1
#6372
Comments
log1p
, log1mexp
, expm1
log1p
, log1mexp
, expm1
Hi, Just to confirm that I understand this problem right: I did try and got a NotImplementedError for pm.logp(pt.log1p(pm.HalfNormal.dist()), 0.5), see below. (Note that I used pt.log1p, as I haven't found pm.log1p.). So, as I understand, this task would be to:
Is my understanding correct? Here's the Exception I got:
|
Yes it makes sense to rewrite it to the form PyMC already understands. Note that log1p(x) is log(add(1, x)) We should restrict the rewrite to the cases where x is a measurable variable without value variable before. This is done by some of the intermediate rewrites in logprob.transform.py already. https://github.com/pymc-devs/pymc/blob/main/pymc/logprob/transforms.py#L406-L426 |
Closing in favor of #6631 |
Description
If
pm.logp(pm.log1p(pm.HalfNormal.dist())
does not work, we should canonicalize into the form that the logprob submodule can understand as done in #6371The text was updated successfully, but these errors were encountered: