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 0615c95
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/notebooks/slds/rbpf_maneuver.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"from functools import partial\n",
"import sys \n",
"sys.path.append('/Users/kostastsampourakis/Desktop/code/Python/projects/dynamax')\n",
"from jax import vmap, tree_map, jit\n",
"from jax import vmap, jit\n",
"from jax.tree_util import tree_map\n",
"from dynamax.slds.inference import ParamsSLDS, LGParamsSLDS, DiscreteParamsSLDS, rbpfilter, rbpfilter_optimal\n",
"from dynamax.slds.models import SLDS\n",
"# import MVN from tfd\n",
Expand Down
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 0615c95

Please sign in to comment.