Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix import path for tree_map #369

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading