From 12f03337b5f15bed16b8bd4df785da639c7c5ce1 Mon Sep 17 00:00:00 2001 From: Chris Russell Date: Thu, 25 Jul 2024 13:14:48 +0100 Subject: [PATCH] epsilon slack --- tests/unittests/test_scipy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unittests/test_scipy.py b/tests/unittests/test_scipy.py index 148d072..fc663d1 100644 --- a/tests/unittests/test_scipy.py +++ b/tests/unittests/test_scipy.py @@ -196,9 +196,9 @@ def test_recall_diff(use_fast=True): # Evaluate the change in fairness (recall difference corresponds to EO) measures = fpredictor.evaluate_fairness(verbose=False) - assert measures["original"]["recall.diff"] > 0.025 + assert measures["original"]["recall.diff"] > 0.025 - assert measures["updated"]["recall.diff"] < 0.025 + assert measures["updated"]["recall.diff"] < 0.025 + 1e-4 measures = fpredictor.evaluate(verbose=False) acc = measures["updated"]["accuracy"] fpredictor.fit(gm.accuracy, gm.recall.diff, 0.025, greater_is_better_const=True)