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

Gaussian Process: outdated calls to PyMC class constructors pymc.gp.Mean and pymc.gp.Covariance #7

Open
shuningele opened this issue Dec 7, 2022 · 1 comment

Comments

@shuningele
Copy link

I'm a final year physics undergrad modelling photometric data on sn2022vqz. When attempting to fit or call the template class with method="gp", I get error messages saying that Mean(const) is not a valid attribute of gp object. Browsing the pymc codes on GitHub, there seems to be Mean and Covariance objects, although the keyword arguments the Covariance constructor may take do not match those input in the fit1dcurve.py of SnooPy. Not finding what the first gp.matern.euclidean in PyMC past documentations on their website, I couldn't replace it on my local machine.

@obscode
Copy link
Owner

obscode commented Dec 8, 2022

The GP fitting using pymc was for python 2.x (old pymc 2), so does not work with pymc3. Instead, install scikit-learn; SNooPy will use that instead and should work. I left the old pymc code in for python 2.x back-compatibility, but I guess at this point it's safe to abandon.

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

No branches or pull requests

2 participants