Skip to content

Instantly share code, notes, and snippets.

@gmyrianthous
Created August 20, 2023 08:38
Show Gist options
  • Save gmyrianthous/8f8c9c444dee9e4c5565d00e9a5000b3 to your computer and use it in GitHub Desktop.
Save gmyrianthous/8f8c9c444dee9e4c5565d00e9a5000b3 to your computer and use it in GitHub Desktop.
from sklearn import preprocessing
label_encoder = preprocessing.LabelEncoder()
train_Y = label_encoder.fit_transform(train_Y)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment