Skip to content

Commit

Permalink
Fix import path for tree_map
Browse files Browse the repository at this point in the history
  • Loading branch information
gileshd committed Jul 15, 2024
1 parent fceca0e commit 28de6b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dynamax/hidden_markov_model/models/arhmm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import jax.numpy as jnp
import jax.random as jr
from jax import lax, tree_map
from jax import lax
from jax.tree_util import tree_map
from jaxtyping import Float, Array
from dynamax.hidden_markov_model.models.abstractions import HMM, HMMParameterSet, HMMPropertySet
from dynamax.hidden_markov_model.models.initial import StandardHMMInitialState, ParamsStandardHMMInitialState
Expand Down
2 changes: 1 addition & 1 deletion dynamax/utils/distributions_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest
import jax.numpy as jnp
import jax.random as jr
from jax import tree_map
from jax.tree_util import tree_map
from jax.scipy.stats import norm
from scipy.stats import invgamma
from tensorflow_probability.substrates import jax as tfp
Expand Down
3 changes: 2 additions & 1 deletion dynamax/utils/optimize.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import jax.numpy as jnp
import jax.random as jr
import optax
from jax import lax, value_and_grad, tree_map
from jax import lax, value_and_grad
from jax.tree_util import tree_map
from dynamax.utils.utils import pytree_len


Expand Down

0 comments on commit 28de6b0

Please sign in to comment.