Closed jy03189211 closed 5 years ago
from pygam import LogisticGAM, s, f
ImportError Traceback (most recent call last) <ipython-input-93-536061280344> in <module> 1 ----> 2 from pygam import LogisticGAM, s, f 3 from pygam.datasets import toy_classification 4 5 X, y = toy_classification(return_X_y=True, n=5000) ImportError: cannot import name 's'
from pygam.datasets import toy_classification
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-94-da02f0fccb53> in <module> 1 2 ----> 3 from pygam.datasets import toy_classification 4 ModuleNotFoundError: No module named 'pygam.datasets'
For package like LinearGAM, LogisticGAM, its functional to fitand to predict, but I can not access
fit
predict
I think the conda package and pip package may not be synced? can't access termsobject by using gam
terms
gam
LinearGAM(callbacks=[Deviance(), Diffs()], constraints=None, dtype='auto', fit_intercept=True, fit_linear=False, fit_splines=True, lam=0.6, max_iter=100, n_splines=25, penalties='auto', scale=None, spline_order=3, tol=0.0001, verbose=False)
gam.terms
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-97-e7c78df77f0c> in <module> ----> 1 gam.terms AttributeError: 'LinearGAM' object has no attribute 'terms'
@jy03189211 you are completely correct the conda package is out of date! i am having trouble updating the conda version...
please use the pip version for now.
from pygam import LogisticGAM, s, f
from pygam.datasets import toy_classification
For package like LinearGAM, LogisticGAM, its functional to
fit
and topredict
, but I can not accessI think the conda package and pip package may not be synced? can't access
terms
object by usinggam
gam.terms