Skip to content

Instantly share code, notes, and snippets.

@gvyshnya
Created April 19, 2021 21:55
Show Gist options
  • Save gvyshnya/8365544d3eb721e72e1a41f678205582 to your computer and use it in GitHub Desktop.
Save gvyshnya/8365544d3eb721e72e1a41f678205582 to your computer and use it in GitHub Desktop.
Creating the category cross features with featurewiz
### we create feature crosses of these categorical variables ###
train = FW.FE_create_categorical_feature_crosses(train, ['cat4','cat18','cat13','cat2'])
test = FW.FE_create_categorical_feature_crosses(test, ['cat4','cat18','cat13','cat2'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment