Skip to content

Instantly share code, notes, and snippets.

@staricon12
Created July 13, 2021 05:42
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 staricon12/dbb6b69feca49aa4e7efe7e4f5bc449a to your computer and use it in GitHub Desktop.
Save staricon12/dbb6b69feca49aa4e7efe7e4f5bc449a to your computer and use it in GitHub Desktop.
y_pred = model.predict(X_test)
#Converting predictions to label
pred = list()
for i in range(len(y_pred)):
pred.append(np.argmax(y_pred[i]))
#Converting one hot encoded test label to label
test = list()
for i in range(len(y_test)):
test.append(np.argmax(y_test[i]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment