# Confusion Matrix - Test data# Using metrics.confusion_matrix functioncm=metrics.confusion_matrix(test_y,test_predictions)data=cm.tolist()print("cm returned from sklearn:",data)display_confusion_matrix(data)
cm returned from sklearn: [[573, 120], [212, 1043]]