-
-
Save sararob/2eb00c269ff90f025f8623f948e67180 to your computer and use it in GitHub Desktop.
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
encoder = MultiLabelBinarizer() | |
encoder.fit_transform(train_genres) | |
train_encoded = encoder.transform(train_genres) | |
test_encoded = encoder.transform(test_genres) | |
num_classes = len(encoder.classes_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment