Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Create confusion matrix manually using python

import matplotlib.pyplot as plt
import numpy
from sklearn import metrics

confusion_matrix = numpy.array([[  6,  94, 10],[ 80, 821 , 100], [ 80, 821 , 10]])

cm_display = metrics.ConfusionMatrixDisplay(confusion_matrix = confusion_matrix, display_labels = ['Sat', 'Sun', 'Mon'])

cm_display.plot()
plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Create #confusion #matrix #manually #python
ADD COMMENT
Topic
Name
5+1 =