cm_sk = metrics.confusion_matrix(y_test, y_test_sklearn) cm_sk
array([[498, 2], [ 1, 499]], dtype=int64)