Add a custom drift method
How to implement a new drift detection method.
Custom StatTest function requirements:
Example:
from typing import Tuple
import numpy as np
import pandas as pd
from scipy.stats import anderson_ksamp
def anderson_stat_test(reference_data: pd.Series, current_data: pd.Series, _feature_type: str, threshold: float) -> Tuple[float, bool]:
p_value = anderson_ksamp(np.array([reference_data, current_data]))[2]
return p_value, p_value < thresholdStatTest meta information (StatTest class):
Example:
Last updated