diff --git a/splink/internals/predict.py b/splink/internals/predict.py index aaaba7c25d..420d49f683 100644 --- a/splink/internals/predict.py +++ b/splink/internals/predict.py @@ -97,7 +97,9 @@ def predict_from_comparison_vectors_sqls( bf_terms, sql_infinity_expression, ) - + # Add condition to treat case of 0 as None + if threshold_match_probability == 0: + threshold_match_probability = None # In case user provided both, take the minimum of the two thresholds if threshold_match_probability is not None: thres_prob_as_weight = prob_to_match_weight(threshold_match_probability)