Skip to content

Commit f83656f

Browse files
committed
fix nans
1 parent abd870c commit f83656f

File tree

1 file changed

+1
-1
lines changed
  • pymc_experimental/distributions/multivariate

1 file changed

+1
-1
lines changed

pymc_experimental/distributions/multivariate/r2d2m2cp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _psivar2musigma(psi: pt.TensorVariable, explained_var: pt.TensorVariable, ps
2929
mu = sigma * pi * 2**0.5
3030
if psi_mask is not None:
3131
return (
32-
pt.where(psi_mask, mu, pt.sign(mu) * explained_var**0.5),
32+
pt.where(psi_mask, mu, pt.sign(pi) * explained_var**0.5),
3333
pt.where(psi_mask, sigma, 0),
3434
)
3535
else:

0 commit comments

Comments
 (0)