dswah / pyGAM

[HELP REQUESTED] Generalized Additive Models in Python
https://pygam.readthedocs.io
Apache License 2.0
862 stars 159 forks source link

Issue with generate_X_grid #228

Closed stefano-m-potter closed 5 years ago

stefano-m-potter commented 5 years ago

Hello,

I am trying to look at some partial dependence plots and I am trying to build a grid using:

from pygam.utils import generate_X_grid, but I get the error: Traceback (most recent call last):

File "", line 1, in from pygam.utils import generate_X_grid

ImportError: cannot import name 'generate_X_grid

I looked in the utils.py file and I can't seem to find the generate_X_grid part of it?

dswah commented 5 years ago

hey @stefano-m-potter !

the problem is that we moved that function into a gam method.

try instead:

gam.generate_X_grid(term=...)

also please check out the quick-start guide for some more imformation!

https://pygam.readthedocs.io/en/latest/notebooks/quick_start.html

the tutorial on code-burst is out of date, and we should stop advertising it...