python畫二分類混淆矩陣(confusion_matrix)代碼

二分類任務,在最後的實驗部分需要畫混淆矩陣,來說明實驗的結果。 import matplotlib.pyplot as plt guess = ["normal","cancer"] fact = [ "normal","cancer"] classes = list(set(fact)) classes.sort(reverse=True) r1=[[367,16],[33,384]]
相關文章
相關標籤/搜索