From ebba34b48fc8f840a4de12bcca2af64c459e8423 Mon Sep 17 00:00:00 2001 From: Sam Lindsay Date: Wed, 24 Apr 2024 22:51:16 +0100 Subject: [PATCH] Update predict.py --- splink/predict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/splink/predict.py b/splink/predict.py index 3a7f7555a1..efc9e18def 100644 --- a/splink/predict.py +++ b/splink/predict.py @@ -55,7 +55,7 @@ def predict_from_comparison_vectors_sqls( thres_prob_as_weight = prob_to_match_weight(threshold_match_probability) else: thres_prob_as_weight = None - if threshold_match_probability or threshold_match_weight: + if threshold_match_probability is not None or threshold_match_weight is not None: thresholds = [ thres_prob_as_weight, threshold_match_weight,