Artificial Intelligence, Machine Learning, Math, Computer Science, Software Engineering.
matrix to evaluate the model’s performance. As we can see, our model classified 23 samples as non-fraudulent when, in fact, they were. confusion_matrix(y_test, y_pred) Out: array([[56862, 2], [ 23, 75]]) For ease of comparison, if we wanted a single number to gauge the model’s performance, we could