from sklearn.metrics import classification_report y_true = [0, 0, 1, 1, 1, 2, 2, 2] y_pred = [0, 1, 1, 1, 2, 2, 2, 2]