Created
April 21, 2019 12:18
-
-
Save prateekjoshi565/829183e711354dd0d7c98bfb23660c41 to your computer and use it in GitHub Desktop.
genre_ohe_target
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
from sklearn.preprocessing import MultiLabelBinarizer | |
multilabel_binarizer = MultiLabelBinarizer() | |
multilabel_binarizer.fit(movies_new['genre_new']) | |
# transform target variable | |
y = multilabel_binarizer.transform(movies_new['genre_new']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment