TrainTestFeatureDrift.add_condition_drift_score_not_greater_than#
- TrainTestFeatureDrift.add_condition_drift_score_not_greater_than(max_allowed_psi_score: float = 0.2, max_allowed_earth_movers_score: float = 0.1, number_of_top_features_to_consider: int = 5)[source]#
Add condition - require drift score to not be more than a certain threshold.
The industry standard for PSI limit is above 0.2. Earth movers does not have a common industry standard.
- Parameters
- max_allowed_psi_score: float , default: 0.2
the max threshold for the PSI score
- max_allowed_earth_movers_score: float , default: 0.1
the max threshold for the Earth Mover’s Distance score
- number_of_top_features_to_consider: int , default: 5
the number of top features for which exceed the threshold will fail the condition.
- Returns
- ——-
- ConditionResult
False if any column has passed the max threshold, True otherwise