Machine Learning, Heartbeat.
negative samples. Example: #MCC evaluation metric from sklearn.metrics import matthews_corrcoef y_true = [0, 1, 1, 0, 1] y_pred = [0, 1, 0, 0, 1] mcc = matthews_corrcoef(y_true, y_pred) print("MCC:", mcc) Receiver Operating Characteristic (ROC) Curve The ROC curve plots the true positive rate (TPR)