I know that in pyGAM you can fit interactions using tensor products via te() (as documented here).
In R, in mgcv package, there are tensor product smooths and interactions, where te() produces a full tensor product smooth and ti() produces a tensor product interaction. Check this link for more detail.
I know that in
pyGAM
you can fit interactions using tensor products viate()
(as documented here).In
R
, inmgcv
package, there are tensor product smooths and interactions, wherete()
produces a full tensor product smooth andti()
produces a tensor product interaction. Check this link for more detail.How can replicate
ti()
fromR
, usingpyGAM
?@dswah