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

sample_posterior_predictive appears to be missing on PyPi distribution #3243

Closed
minggli opened this issue Nov 1, 2018 · 5 comments
Closed
Labels

Comments

@minggli
Copy link

minggli commented Nov 1, 2018

According to the docs, on https://docs.pymc.io/api/inference.html?highlight=sample_posterior_predictive, there is a sample_posterior_predictive method at package root level, but for 3.5.0 installed from PyPi, the method is missing in the code if I'm not wrong.

import pymc3 as pm
pm.__version__
pm.sample_posterior_predictive
'3.5'
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'pymc3' has no attribute 'sample_posterior_predictive'

When cloning from master, it works fine.

Versions and main components

  • PyMC3 Version: 3.5.0
  • Theano Version: 1.0
  • Python Version: 3.7.0
  • Operating system: MacOS
  • How did you install PyMC3: pip
@minggli minggli changed the title Appears to be missing methods on PyPi Appears to be missing methods on PyPi distribution Nov 1, 2018
@minggli minggli changed the title Appears to be missing methods on PyPi distribution sample_posterior_predictive appears to be missing on PyPi distribution Nov 1, 2018
@twiecki
Copy link
Member

twiecki commented Nov 9, 2018

Indeed, that seems to have not made it into the release for some reason. For now you can use sample_ppc which is the same, or install the current master branch, or wait for the next release.

@twiecki twiecki added the release label Nov 9, 2018
@minggli
Copy link
Author

minggli commented Nov 9, 2018

@twiecki thanks. looking forward to next release.

By the way, I think you are going to a Bayesian Mixer meet up in London. hope to see you there.

@twiecki
Copy link
Member

twiecki commented Nov 9, 2018

@minggli Great, see you there!

@springcoil
Copy link
Contributor

@minggli I'm glad you mentioned this in a pub last night :)

@eigenfoo
Copy link
Member

@twiecki we're on v3.6 now, and sample_posterior_predictive is now released. We can close this 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants