Unpack the confusion matrix into its four numbers with .ravel() and return [tn,…

Machine Learning · from The confusion matrix

confusion_matrixprecisionrecallf1_scorebalanced_accuracyclassification_report

Putting the kettle on…

Starting up…

Exercise 1

Unpack the confusion matrix into its four numbers with .ravel() and return [tn, fp, fn, tp] as ints.

your answer
stuck? the lesson behind it
The confusion matrix
Four numbers, and every classification metric is arithmetic on them