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

Add legacy messages to PyMC3 #7338

Merged
merged 2 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

|Build Status| |Coverage| |NumFOCUS_badge| |Binder| |Dockerhub|

.. warning::
This is the legacy version of PyMC3, now renamed to PyMC.
If you are looking for the latest version of PyMC, please visit
`PyMC's documentation <https://www.pymc.io/welcome.html>`__


PyMC3 is a Python package for Bayesian statistical modeling and Probabilistic Machine Learning
focusing on advanced Markov chain Monte Carlo (MCMC) and variational inference (VI)
algorithms. Its flexibility and extensibility make it applicable to a
Expand Down
4 changes: 4 additions & 0 deletions pymc3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
handler = logging.StreamHandler()
_log.addHandler(handler)

_log.warning("The version of PyMC you are using is very outdated.\n\nPlease upgrade to the latest "
"version of PyMC https://www.pymc.io/projects/docs/en/stable/installation.html\n\n"
"Also notice that PyMC3 has been renamed to PyMC."
)

def _check_backend_version():
backend_paths = theano.__spec__.submodule_search_locations
Expand Down
6 changes: 6 additions & 0 deletions pymc3/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,16 @@ def sample(
mean sd hdi_3% hdi_97%
p 0.609 0.047 0.528 0.699
"""
_log.info("The version of PyMC you are using is very outdated.\n\nPlease upgrade to the latest "
"version of PyMC https://www.pymc.io/projects/docs/en/stable/installation.html\n\n"
"Also notice that PyMC3 has been renamed to PyMC."
)

# Handle deprecated/forwards-compatible kwargs
if initvals is not None:
start = initvals


model = modelcontext(model)
start = deepcopy(start)
if start is None:
Expand Down
Loading