Skip to content

Commit

Permalink
epsilon slack
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMRuss committed Jul 25, 2024
1 parent d0b0122 commit 12f0333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unittests/test_scipy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12f0333

Please sign in to comment.