Skip to content

Instantly share code, notes, and snippets.

@malharb
Created June 5, 2020 08:10
Show Gist options
  • Save malharb/6abd306e8bc74023b8ab41a818da506f to your computer and use it in GitHub Desktop.
Save malharb/6abd306e8bc74023b8ab41a818da506f to your computer and use it in GitHub Desktop.
Pulsar - evaluation
prediction = model.predict_classes(X_test)
prediction = prediction.reshape(5370,)
data = {'True':y_test,'Predicted':prediction}
df2 = pd.DataFrame(data)
from sklearn.metrics import classification_report,confusion_matrix
print(classification_report(df2['True'],df2['Predicted']))
print(confusion_matrix(df2['True'],df2['Predicted']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment