Note
Click here to download the full example code
New Category#
import pandas as pd
from deepchecks.tabular import Dataset
from deepchecks.tabular.checks import CategoryMismatchTrainTest
CategoryMismatchTrainTest().run(train, test)
train_data = {"col1": ["a", "b", "a", "c"] * 10, "col2": ['a','b','b','q']*10}
test_data = {"col1": ["a","b","d"] * 10, "col2": ['a', '2', '1']*10}
train = Dataset(pd.DataFrame(data=train_data), cat_features=["col1","col2"])
test = Dataset(pd.DataFrame(data=test_data), cat_features=["col1", "col2"])
CategoryMismatchTrainTest().run(train, test)
Total running time of the script: ( 0 minutes 0.076 seconds)