Max Kleiner
Nov 4, 2020

Its better to set actual first on the confusion matrix to get same frame like report

print(confusion_matrix(y_test, y_pred))

print(classification_report(y_test, y_pred))

dtype: int64

predict

actual [[ 39 32]

[ 22 222]]

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Max Kleiner
Max Kleiner

Written by Max Kleiner

Max Kleiner's professional environment is in the areas of OOP, UML and coding - among other things as a trainer, developer and consultant.

No responses yet

Write a response