Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created March 16, 2020 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakshay-arora/fad09708730716807de6243cccd205ec to your computer and use it in GitHub Desktop.
Save lakshay-arora/fad09708730716807de6243cccd205ec to your computer and use it in GitHub Desktop.
train_gender_encoded, validate_gender_encoded, test_gender_encoded = transform_data(train_gender,
validate_gender,
impute_gender,
'gender',
{
'type' : { 'BinaryEncoding' : ['city','branch_code','age_bucket'],
'OneHotEncoding' : ['occupation','dependents']
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment