TrainTestLabelDrift.add_condition_drift_score_less_than#
- TrainTestLabelDrift.add_condition_drift_score_less_than(max_allowed_categorical_score: float = 0.15, max_allowed_numeric_score: float = 0.075) TrainTestLabelDrift [source]#
Add condition - require label properties drift score to be less than a certain threshold.
The industry standard for PSI limit is above 0.2. Cramer’s V does not have a common industry standard. Earth movers does not have a common industry standard. The threshold was lowered by 25% compared to feature drift defaults due to the higher importance of label drift.
- Parameters
- max_allowed_categorical_score: float , default: 0.15
the max threshold for the PSI score
- max_allowed_numeric_score: float , default: 0.075
the max threshold for the Earth Mover’s Distance score
- Returns
- ——-
- ConditionResult
False if any column has passed the max threshold, True otherwise