SimpleFeatureContribution.add_condition_feature_pps_difference_not_greater_than#

SimpleFeatureContribution.add_condition_feature_pps_difference_not_greater_than(threshold: float = 0.2) SFC[source]#

Add new condition.

Add condition that will check that difference between train dataset property pps and test dataset property pps is not greater than X. If per_class is True, the condition will apply per class, and a single class with pps difference greater than X will be enough to fail the condition.

Parameters
thresholdfloat , default: 0.2

train test ps difference upper bound.

Returns
SFC