Created
April 19, 2021 21:50
-
-
Save gvyshnya/c45d5e4508360a5f3ef16aedeee945c3 to your computer and use it in GitHub Desktop.
The example to demonstrate binning continuous variables with featurewiz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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