Created
October 15, 2019 06:54
-
-
Save MariaLavrovskaya/c5f978e780d38326f4611803e916ead0 to your computer and use it in GitHub Desktop.
airbnb_17
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
#From labels to dummy | |
from sklearn.preprocessing import OneHotEncoder | |
ohe = OneHotEncoder(sparse=False) | |
X_train_ohe = ohe.fit_transform(X_train_le) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment