exoplanet-dev / exoplanet

Fast & scalable MCMC for all your exoplanet needs!
https://docs.exoplanet.codes
MIT License
206 stars 52 forks source link

AttributeError: module 'exoplanet' has no attribute 'get_dense_nuts_step' #268

Closed sukanyaX closed 2 years ago

sukanyaX commented 2 years ago

In trying to run The Joker, I encountered this error, specifically in this code snippet when I try to make the corner plot -

trace = pm.sample( tune=500, draws=1000, start=mcmc_init, step=xo.get_dense_nuts_step(target_accept=0.95), random_seed=seed, cores=1, chains=2)

Thanks for your help!

dfm commented 2 years ago

That method has long been deprecated. Depending on the version of PyMC3 that you're using, you can use init="adapt_full" instead of step=, or the sample function from https://github.com/exoplanet-dev/pymc3-ext (without the step argument... everything else should work)

Hope this helps!