Categorical and mixed type data drift detection on income prediction
Method
Dataset
!pip install alibiimport alibi
import matplotlib.pyplot as plt
import numpy as np
from alibi_detect.cd import ChiSquareDrift, TabularDrift
from alibi_detect.saving import save_detector, load_detectorLoad income prediction dataset
adult = alibi.datasets.fetch_adult()
X, y = adult.data, adult.target
feature_names = adult.feature_names
category_map = adult.category_map
X.shape, y.shapeDetect drift
Categorical data drift
Last updated
Was this helpful?

