-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
TestBeta.test_beta_regression
fails with latest pytensor
#888
Comments
I confirm I can reproduce the issue. This happens because the values of mu are so small that the beta likelihood is generating values equal to 0 (but this should not be the case, as the beta is defined in the (0, 1) interval). The above is a consequence of the sampler not working OK, probably because of the small number of tuning steps. We can:
If I can reproduce the problem, I'll open an issue over there. |
I was able to reproduce the issue: import numpy as np
import pymc as pm
mu = np.array(
[
7.07551617e-12,
3.13190732e-11,
1.37305053e-10,
5.71933452e-08,
3.47710424e-07,
7.36626506e-06,
1.69159968e-04,
4.39823566e-03,
3.43223695e-01,
3.41184856e-01,
]
)
kappa = np.array(
[
2.42025905,
2.40677827,
2.40394316,
2.36733373,
2.36652374,
2.3536546,
2.35645956,
2.34899749,
2.37637218,
2.35059481,
]
)
alpha = mu * kappa
beta = (1 - mu) * kappa
draws = pm.draw(pm.Beta.dist(alpha, beta))
print(draws)
print((draws == 0).sum())
Issue here pymc-devs/pymc#7694 |
Thanks @tomicapretto! |
When updating to
pytensor
2.28.0, this test from thebambi
suite started failing:Context: bumping pytensor in nixpkgs
NixOS/nixpkgs#383783
The text was updated successfully, but these errors were encountered: