Skip to content

Commit

Permalink
Silence type errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-czyz committed Apr 26, 2024
1 parent fa085aa commit 9bca9b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bmi/estimators/external/gmm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
try:
import numpyro
import numpyro.distributions as dist
from numpyro.infer import MCMC, NUTS
import numpyro # type: ignore
import numpyro.distributions as dist # type: ignore
from numpyro.infer import MCMC, NUTS # type: ignore
except ImportError:
numpyro, dist, MCMC, NUTS = [None] * 4

Expand Down Expand Up @@ -38,7 +38,7 @@ def model(
"""
alpha = alpha or 1.0 / K

n_points, n_dim = data.shape
_, n_dim = data.shape

# Prior for mixing proportions
pi = numpyro.sample("pi", dist.Dirichlet(concentration=alpha * jnp.ones(K)))
Expand Down

0 comments on commit 9bca9b9

Please sign in to comment.