Menu

Generating the Classification Report

Generating the Classification Report

A classification report provides a more comprehensive evaluation of model performance.

Code

from sklearn.metrics import classification_report

print(

classification_report(

Y_test,

testing_predictions

)

)

Explanation

The report includes:

  • Precision
  • Recall
  • F1-Score
  • Support

These metrics help determine how effectively the model identifies fraudulent transactions.