Skip to content
M.U.N.U.O.Data × AI × Systems

Data Lab

Classification & Confusion Matrix

Change the fraud review threshold on a synthetic dataset with illustrative scores.

Loading simulation…

Python example

from sklearn.metrics import confusion_matrix
labels = [int(score >= 0.5) for score in scores]
print(confusion_matrix(actual, labels))
All simulations