H2o GLM interact only certain predictors

Viewed 893

I'm interested in creating interaction terms in h2o.glm(). But I do not want to generate all pairwise interactions. For example, in the mtcars dataset...I want to interact 'mpg' with all the other factors such as 'cyl','hp', and 'disp' but I don't want the other factors to interact with each other (so I don't want disp_hp or disp_cyl).

How should I best approach this problem using the (interactions = interactions_list) parameter in h2o.glm() ?

Thank you

1 Answers
Related