Skip to content

Commit

Permalink
correct tie resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMRuss committed Aug 23, 2024
1 parent 7e5072f commit 51fe4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/test_additional_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_active_constraints(use_fast=True):
cpredictor = fair.FairPredictor(predictor, test_dict, "sex_ Female", use_fast=use_fast)

cpredictor.fit(gm.accuracy, gm.recall.diff, 0.005, additional_constraints=((gm.pos_pred_rate, .7),))
assert cpredictor.evaluate(metrics={'m': gm.pos_pred_rate})['updated'][0] > .7
assert cpredictor.evaluate(metrics={'m': gm.pos_pred_rate})['updated'][0] >= .7


def test_active_constraints_slow():
Expand Down

0 comments on commit 51fe4c2

Please sign in to comment.