Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Confusion matrix with seaborn heatmap

import seaborn as sns
from sklearn.metrics import confusion_matrix as cm
conf_mat = cm(y_true, y_pred)
sns.heatmap(conf_mat, annot=True)
Comment

PREVIOUS NEXT
Code Example
Python :: simple seaborn heatmap 
Python :: python unittest coverage main function 
Python :: flask No application found. Either work inside a view function or push an application context 
Python :: python is instance 
Python :: how to take space separated input in pyhon dicationary 
Python :: python char at 
Python :: split the column value and take first value in pandas 
Python :: WARNING: This is a development server 
Python :: how to improve accuracy of random forest classifier 
Python :: filter directory in python 
Python :: del list python 
Python :: groupby and list 
Python :: dataframe multiindex 
Python :: python list index() 
Python :: pyqt set focus 
Python :: first and last name generator python 
Python :: pandas how to drop rows with extreme values in a single column 
Python :: stack in python 
Python :: how to get more than one longest word in a list python 
Python :: python logical operators 
Python :: installing intel python 
Python :: Python __mul__ 
Python :: python keyboard input 
Python :: numpy create empty array 
Python :: pandas bins dummy 
Python :: learn basic facts about dataframe | dataframe info 
Python :: python machine learning 
Python :: check if key exists in sesison python 
Python :: python tuple 
Python :: python import 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =