TrainTestPredictionDrift.add_condition_drift_score_less_than#
- TrainTestPredictionDrift.add_condition_drift_score_less_than(max_allowed_categorical_score: float = 0.15, max_allowed_numeric_score: float = 0.15) PredictionDrift [source]#
Add condition - require prediction properties drift score to be less than the threshold.
The industry standard for PSI limit is above 0.2. There are no common industry standards for other drift methods, such as Cramer’s V, Kolmogorov-Smirnov and Earth Mover’s Distance. The threshold was lowered by 25% compared to feature drift defaults due to the higher importance of prediction drift.
- Parameters
- max_allowed_categorical_score: float , default: 0.15
the max threshold for the categorical variable drift score
- max_allowed_numeric_score: float , default: 0.15
the max threshold for the numeric variable drift score
- Returns
- ConditionResult
False if any property has passed the max threshold, True otherwise