Confusion Matrix Report#


import pandas as pd
from sklearn.datasets import load_iris
from sklearn.ensemble import AdaBoostClassifier
from sklearn.model_selection import train_test_split

from deepchecks.tabular import Dataset
from deepchecks.tabular.checks import ConfusionMatrixReport

Generating data#

iris = load_iris(as_frame=True)
clf = AdaBoostClassifier()
frame = iris.frame
X =
y =
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.5, random_state=42), y_train)
ds = Dataset(pd.concat([X_test, y_test], axis=1),

Running confusion_matrix_report check#, clf)
Confusion Matrix Report

Total running time of the script: ( 0 minutes 0.131 seconds)

Gallery generated by Sphinx-Gallery