When using LinearGAM.gridsearch(X, y) on any dataset, e.g. Boston house prices as follows:
from pygam import LinearGAM
from sklearn.datasets import load_boston
boston = load_boston()
X = pd.DataFrame(boston.data, columns=boston.feature_names)
y = pd.Series(boston.target)
gam = LinearGAM(n_splines=10).gridsearch(X, y)
it results in:
TypeError: '(slice(None, None, None), 0)' is an invalid key
When using LinearGAM.gridsearch(X, y) on any dataset, e.g. Boston house prices as follows:
it results in:
TypeError: '(slice(None, None, None), 0)' is an invalid key
Will be happy to submit any additional info.