Creating interaction terms after splitting dataset into train and test sets
I have the following preprocessing stage before applying linear regression. Would there be a way to add interaction terms ‘Numeric_Var1Categorical_Var1’and ‘Numeric_Var2Categorical_Var1′ after splitting the dataset into train and test sets?
Python: creating interaction terms after splitting dataset into train and test sets
I have the following preprocessing stage before applying linear regression. Would there be a way to add interaction terms ‘Numeric_Var1Categorical_Var1’and ‘Numeric_Var2Categorical_Var1′ after splitting the dataset into train and test sets?