Skip to content

Instantly share code, notes, and snippets.

@mrocklin
Created February 21, 2017 00:34
Show Gist options
  • Save mrocklin/19c89d78e34437e061876a9872f4d2df to your computer and use it in GitHub Desktop.
Save mrocklin/19c89d78e34437e061876a9872f4d2df to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jason2Brownlee
Copy link

Great example!

Consider using an ordinal encoding or native categorical support in xgboost instead of a one hot encoding. Generally, a one hot encoding is slower on large datasets and often results in a less skillful xgboost model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment