Skip to content

Commit c93260f

Browse files
authored
Update r2d2m2cp.py (#245)
* Update r2d2m2cp.py * Update r2d2m2cp.py
1 parent a362ff0 commit c93260f

File tree

1 file changed

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

1 file changed

+1
-2
lines changed

pymc_experimental/distributions/multivariate/r2d2m2cp.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ def _phi(
193193
raise TypeError("Can't use variance explained with less than two variables")
194194
phi = pt.as_tensor(variance_explained)
195195
else:
196-
phi = 1 / len(model.coords[dim])
197-
phi = _broadcast_as_dims(phi, dims=dims)
196+
phi = _broadcast_as_dims(1.0, dims=dims)
198197
if importance_concentration is not None:
199198
return pm.Dirichlet("phi", importance_concentration * phi, dims=broadcast_dims + [dim])
200199
else:

0 commit comments

Comments
 (0)