Skip to content

Commit

Permalink
workflow patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMRuss committed Jun 17, 2024
1 parent a865cb2 commit 753ae7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ To install from source.
3. Download the source of oxonfair and in the source directory run:
pip install -e .

To install every single dependency used for testing [autogluon, maplotlib, xgboost, and a range of helper functions] use:
pip install -e . \[tests\]

Now run the [Example Notebook](examples/quickstart_autogluon.ipynb) or try some of the example below.

For scikit/XGBoost learn see [sklearn.md](./sklearn.md) and the [Example Notebook](examples/quickstart_xgboost.ipynb)
Expand Down
6 changes: 3 additions & 3 deletions tests/unittests/test_ag.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ def test_recall_diff_inferred(use_fast=True):
# difference between protected attributes of less than 2.5%) despite not
# using sex at run-time

fpredictor.fit(gm.accuracy, gm.recall.diff, 0.025)
fpredictor.fit(gm.accuracy, gm.recall.diff, 0.001)

measures = fpredictor.evaluate_fairness(verbose=False)

assert measures["original"]["recall.diff"] > 0.025
assert measures["original"]["recall.diff"] > 0.001

assert measures["updated"]["recall.diff"] < 0.025
assert measures["updated"]["recall.diff"] < 0.001

# Prove that sex isn't being used by dropping it and reevaluating.

Expand Down

0 comments on commit 753ae7b

Please sign in to comment.