Skip to content

Instantly share code, notes, and snippets.

@gvyshnya
Created April 19, 2021 21:50
Show Gist options
  • Save gvyshnya/c45d5e4508360a5f3ef16aedeee945c3 to your computer and use it in GitHub Desktop.
Save gvyshnya/c45d5e4508360a5f3ef16aedeee945c3 to your computer and use it in GitHub Desktop.
The example to demonstrate binning continuous variables with featurewiz
### we bin the following numeric variables using gaussian mixture models
bin_these = {'cont0': 4, 'cont1': 5, 'cont3': 2, 'cont4': 2, 'cont6': 3, 'cont8': 3, 'cont10': 10}
train, test = FW.FE_discretize_numeric_variables(train,bin_these,test=test, strategy='gaussian')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment