Sep 9, 2018 · 1 min read
Manar, you can now fit interaction terms using tensor products of splines.
for example, to fit an interaction on features 0 and 1, you could do:
```
from pygam import LinearGAM, te
from pygam.datasets import toy_interaction
X, y = toy_interaction()
gam = LinearGAM(te(0,1)).fit(X, y)
gam.summary()
```
see the github for more details
-dani
