Error in running the example code for hierarchical ddm #333
-
Hi team, I encountered the an error while trying to run the following hierarchical model in main tutorial: **Compiling... Cell In[8], line 2 File C:\ProgramData\miniconda3\Lib\site-packages\hssm\hssm.py:343 in sample File C:\ProgramData\miniconda3\Lib\site-packages\bambi\models.py:325 in fit File C:\ProgramData\miniconda3\Lib\site-packages\bambi\backend\pymc.py:96 in run File C:\ProgramData\miniconda3\Lib\site-packages\bambi\backend\pymc.py:211 in _run_mcmc File C:\ProgramData\miniconda3\Lib\site-packages\pymc\sampling\jax.py:630 in sample_numpyro_nuts File C:\ProgramData\miniconda3\Lib\site-packages\pymc\sampling\jax.py:136 in get_jaxified_logp File C:\ProgramData\miniconda3\Lib\site-packages\pymc\sampling\jax.py:129 in get_jaxified_graph File C:\ProgramData\miniconda3\Lib\functools.py:909 in wrapper File C:\ProgramData\miniconda3\Lib\site-packages\pytensor\link\jax\dispatch\basic.py:51 in jax_funcify_FunctionGraph File C:\ProgramData\miniconda3\Lib\site-packages\pytensor\link\utils.py:738 in fgraph_to_python File C:\ProgramData\miniconda3\Lib\functools.py:909 in wrapper File C:\ProgramData\miniconda3\Lib\site-packages\pytensor\link\jax\dispatch\elemwise.py:12 in jax_funcify_Elemwise File C:\ProgramData\miniconda3\Lib\functools.py:909 in wrapper File C:\ProgramData\miniconda3\Lib\site-packages\pytensor\link\jax\dispatch\scalar.py:69 in jax_funcify_ScalarOp File C:\ProgramData\miniconda3\Lib\site-packages\jax_src\deprecations.py:53 in getattr AttributeError: module 'jax.numpy' has no attribute 'product'** I tried to debug it myself but I couldn't find a solution to this, thus, your help would be greatly appreciated! Thanks a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think I have fixed it by downgrading the jax and jaxlib version down. |
Beta Was this translation helpful? Give feedback.
I think I have fixed it by downgrading the jax and jaxlib version down.
pip install jax==0.4.13
andpip install jaxlib==0.4.13
works for me.