Skip to content

Commit

Permalink
fixed broken coverage badge link
Browse files Browse the repository at this point in the history
  • Loading branch information
maniospas committed Aug 25, 2024
1 parent d8820e7 commit 0d355a0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# FairBench

![build](https://github.com/mever-team/FairBench/actions/workflows/tests.yml/badge.svg)
![coverage](https://github.com/mever-team/FairBench/actions/workflows/tests.yml/coverage.svg)
![coverage](coverage.svg)
[![Documentation Status](https://readthedocs.org/projects/fairbench/badge/?version=latest)](https://fairbench.readthedocs.io/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Expand Down
6 changes: 5 additions & 1 deletion examples/playground/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
test, y, yhat = fb.demos.adult(predict="probabilities")
s = fb.Fork(fb.categories @ test[9]) # test[8] is a pandas column with race values

report = fb.multireport(
report1 = fb.multireport(
scores=yhat, predictions=(yhat > 0.5), labels=y, sensitive=s, top=50
)
report2 = fb.unireport(
scores=yhat, predictions=(yhat > 0.5), labels=y, sensitive=s, top=50
)
report = fb.combine(report1, report2)
fb.describe(report)

# report = fb.accreport(
Expand Down

0 comments on commit 0d355a0

Please sign in to comment.