minaskar / zeus

⚡️ zeus: Lightning Fast MCMC ⚡️
https://zeus-mcmc.readthedocs.io/
GNU General Public License v3.0
225 stars 34 forks source link

zeus has no attribute 'EnsembleSampler' #15

Closed savinbeniwal closed 3 years ago

savinbeniwal commented 3 years ago

I am trying to reproduce manual working example. But it gives me the following error: AttributeError: module 'zeus' has no attribute 'EnsembleSampler'

But it works with emcee though!

minaskar commented 3 years ago

Could you show me some code snippet?

kamalbora94 commented 3 years ago

I am also facing the same issue while reproducing the "fitting a model to data" part given in the docs.

minaskar commented 3 years ago

Which version is printed when you run print(zeus.__version__)?

kamalbora94 commented 3 years ago

2.3.0

minaskar commented 3 years ago

That's strange, did you get any errors during the installation?

Maybe it's worth repeating the installation in a new conda environment:

conda create --name zeus-env python=3
conda activate zeus-env
pip install zeus-mcmc

Could you run your code in a colab environment just to rule out that there're any typos in the code?

You can find a simple example which you can run online here https://colab.research.google.com/drive/1qvHwftc5yL8usoJ8NYbFxvNWG2OL6pkB?usp=sharing

kamalbora94 commented 3 years ago

No, I didn't get any error during installation. I am using Python 3.6.9

kamalbora94 commented 3 years ago

I tried to run the default code of zeus " fitting a model to data".

minaskar commented 3 years ago

zeus and all of its requirements are compatible with Python 3.6.9 (I just tested it).

Did you try re-installing zeus in a new Conda environment like I mentioned in the previous comment?

savinbeniwal commented 3 years ago

Hi Minaskar

After re-installing zesus in Jupyter-Notebook via below code, now it working perfectly! !conda create --name zeus-env python=3 --y !conda activate zeus-env --y !pip install zeus-mcmc

Thanks!

minaskar commented 3 years ago

I'm glad that was resolved!