-
Notifications
You must be signed in to change notification settings - Fork 242
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
SineBivariateVonMises generates NaN log probability for negative correlation parameter #1511
Comments
but gets invalid log_prob with distribution
and observed from jax import random
import numpyro.distributions as dist
phi_loc = 0.29627275
psi_loc = -0.03310037
phi_conc = 19.143257
psi_conc = 44.272667
corr = -0.6486334
d = dist.SineBivariateVonMises(phi_loc, psi_loc, phi_conc, psi_conc, corr)
data = dist.SineBivariateVonMises(0, 0, 1, 1, -1).sample(random.PRNGKey(42), (1000, ))
log_prob = d.log_prob(data)
print(log_prob) |
cc @OlaRonning |
The problem is the Edit: no reason to move the |
When using SineBivariateVonMises in an MCMC setting with the NUTS sampler and hard assigning the correlation parameter of the SinveBivariateVonMises to a negative value, the model can not be initialised. Sampling from a SineBivariateVonMises with a negative correlation parameter does work though.
@fehiepsi traced, that the log probability becomes NaN.
How to recreate:
data = SineBivariateVonMises(0, 0, 1, 1, -1).sample(PRNGKey(42), (1000, ))
and train this model:
Further information can be found in this forum post
The text was updated successfully, but these errors were encountered: