Spaces:
Runtime error
Runtime error
File size: 315 Bytes
7dd7207 |
1 2 3 4 5 6 7 8 9 |
import pandas as pd
import numpy as np
from sklearn.metrics import confusion_matrix, ConfusionMatrixDisplay
def plot_confusion_matrix(x: np.ndarray, y: np.ndarray):
cm = confusion_matrix(x, y)
disp = ConfusionMatrixDisplay(confusion_matrix=cm, display_labels=['clean', 'watermark'])
return disp.plot() |