pymc-devs / pymc

Bayesian Modeling and Probabilistic Programming in Python
https://docs.pymc.io/
Other
8.71k stars 2.01k forks source link

Module 'pymc3' has no attribute 'model' #7511

Closed Seymagocmez closed 1 month ago

Seymagocmez commented 1 month ago

Description

I have a similar issue that has been reported before and I couldn't find a way around it.

def compute_MCMC_results(draws=3000, tune=1000): with pm.Model(): b0 = pm.Uniform('b0', 0, 50) A = pm.Uniform('A', 0, 50) T = pm.Uniform('T', 0, 100) log_alpha = pm.Uniform('log_alpha', -10, 10)

with pm.Model(): ^^^^^^^^ AttributeError: module 'pymc3' has no attribute 'Model'

welcome[bot] commented 1 month ago

Welcome Banner] :tada: Welcome to PyMC! :tada: We're really excited to have your input into the project! :sparkling_heart:
If you haven't done so already, please make sure you check out our Contributing Guidelines and Code of Conduct.

aloctavodia commented 1 month ago

PyMC3 is no longer mantained. Please update to the latest version of PyMC.

https://www.pymc.io/projects/docs/en/latest/installation.html