Created
April 23, 2020 19:43
-
-
Save curiousily/0f7764c07b763a0de3f532b16a3434ac to your computer and use it in GitHub Desktop.
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
enc = OneHotEncoder(handle_unknown='ignore', sparse=False) | |
enc = enc.fit(y_train) | |
y_train = enc.transform(y_train) | |
y_test = enc.transform(y_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment