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

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

Closed
sukanyaX opened this issue Sep 15, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@sukanyaX
Copy link

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)

  • Version of exoplanet: 0.5.2
  • Operating system: Mac OS Big Sur 11.2.2
  • python 3.9.6, installed via pip.

Thanks for your help!

@sukanyaX sukanyaX added the bug Something isn't working label Sep 15, 2022
@dfm
Copy link
Member

dfm commented Sep 15, 2022

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!

@dfm dfm closed this as completed Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants