confusion_matrix_metrics¶ Compute accuracy metrics based on the confusion matrix. Parameters¶ y_true True labels. y_preds Predicted labels.