Skip to content

Instantly share code, notes, and snippets.

@oscar-defelice
Created November 4, 2020 08:26
Show Gist options
  • Save oscar-defelice/4c8c50774c109aab3e579453e90d6add to your computer and use it in GitHub Desktop.
Save oscar-defelice/4c8c50774c109aab3e579453e90d6add to your computer and use it in GitHub Desktop.
encoded_labels = preprocessing.LabelEncoder()
y = encoded_labels.fit_transform(train_data['label'])
y = to_categorical(y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment