Skip to content

Instantly share code, notes, and snippets.

@Karts27
Last active September 14, 2021 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Karts27/fe524837b57baccc8b68d57d6c2d5d43 to your computer and use it in GitHub Desktop.
Save Karts27/fe524837b57baccc8b68d57d6c2d5d43 to your computer and use it in GitHub Desktop.
train=np.array(train)
test=np.array(test)
train_label=np.array(train_label)
test_label=np.array(test_label)
X = train
y0 = train_label
binencoder = LabelBinarizer()
y = binencoder.fit_transform(y0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment