-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 'pymc3.gp' has no attribute 'GP' #4874
Comments
That sounds very much like a problem with your installation. However, that also doesn't work for everybody (e.g. #4749 (comment)) and we have not figured out why. |
Now I changed to Linux, but I have exactly the same problem that was describe above: ** AttributeError: module 'pymc3.gp' has no attribute 'GP' PyMC3 Version: pymc3==3.11.2 Maybe the problem is related with the Python version? Any recomendations? Note 1: I have the same problem with Python 3.7.10 and 3.8.10 To install pymc3 I did this procedure:
|
If you cloned the repo from https://github.com/pymc-devs/pymc3 you have the latest development version which already depends on Aesara.
That latest version is still missing a few distributions, but for simple things the GP submodule should be fine already. |
I tried in Windows and Linux and I can't follow your instructions, in both operating systems I get: ** ERROR: Could not open requirements file: [Errno 13] Permission denied: '.' ** |
That sounds like you did something as |
Installation issues aside, I think there isn't a |
Thanks @bwengals, this is the solution to my problem. |
I was trying to reproduce the notebook for Gaussian Processes given in
https://pymc3-testing.readthedocs.io/en/rtd-docs/notebooks/GP-introduction.html ,
however when I type the following lines of code:
I get:
**
AttributeError Traceback (most recent call last)
in
16 f_cov = s2_f * pm.gp.cov.ExpQuad(1, l)
17
---> 18 y_obs = pm.gp.GP('y_obs', cov_func=f_cov, sigma=s2_n, observed={'X':X, 'Y':y})
AttributeError: module 'pymc3.gp' has no attribute 'GP'
**
Can someone explaining what I am doing wrong?
Thanks in advance.
The text was updated successfully, but these errors were encountered: