Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

ConfusionMatrixDisplay size

import numpy as np
from sklearn.metrics import ConfusionMatrixDisplay, confusion_matrix
import matplotlib.pyplot as plt

cm = confusion_matrix(np.arange(25), np.arange(25))
cmp = ConfusionMatrixDisplay(cm, display_labels=np.arange(25))
fig, ax = plt.subplots(figsize=(10,10))
cmp.plot(ax=ax)
Comment

PREVIOUS NEXT
Code Example
Python :: Python How to get the keys in a dictionary? 
Python :: windows 10 python path 
Python :: Got AttributeError when attempting to get a value for field `name` on serializer 
Python :: weighted average in python pandas 
Python :: logarithms python 
Python :: cv2 check if image is grayscale 
Python :: read cells in csv with python 
Python :: lambda and function in python 
Python :: use mongo replica set python 
Python :: get filename from path python 
Python :: how to make string bold in python 
Python :: how to check django version 
Python :: K-Means Clustering in Python – 3 clusters 
Python :: if else python 
Python :: how to run flask in port 80 
Python :: python checking for NoneType 
Python :: python sklearn knn regression example 
Python :: django rest framework function based views 
Python :: pyqt tutorial 
Python :: get method in python dictionary 
Python :: convert utc to gmt+7 pandas 
Python :: python code to demonstrate inheritance 
Python :: stack error: command failed: import sys; print "%s.%s.%s" % sys.version_info[:3]; 
Python :: how to add list as new row to pandas dataframe 
Python :: selenium ways of finding 
Python :: how to get current google tab in python 
Python :: python list of dictionaries to list 
Python :: change base python 
Python :: python merge list of dict into single dict 
Python :: python round 1 decimal place 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =