-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use categorical dtype for categorical features
The categorical 'actiontype', 'result', 'bodypart' and 'bodypart_detailed' features now have dtype "pd.Categorical". This allows machine learning frameworks such as xgboost to automatically recognize these features as being categorical and handle them accordingly. The features are now strings (e.g., "pass") instead of integer ids. Also, the column name for each of these features was renamed as follows: type_id -> actiontype result_id -> result bodypart_id -> bodypart
- Loading branch information
1 parent
81cc37a
commit 3ab93c2
Showing
2 changed files
with
78 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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