-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new pages and dependencies for drift metrics and local explainers
- Loading branch information
Showing
10 changed files
with
131 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ output: | |
antora: | ||
extensions: | ||
- require: '@antora/lunr-extension' | ||
- require: '@djencks/asciidoctor-mathjax' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
= Bias metrics | ||
// Settings | ||
:idprefix: | ||
:idseparator: - | ||
:example-caption!: | ||
:stem: latexmath | ||
|
||
== Demographic Parity | ||
|
||
=== Statistical Parity Difference (SPD) | ||
|
||
The Statistical Parity Difference (SPD) is the difference in the probability of prediction between the privileged and unprivileged groups. Typically: | ||
|
||
* stem:[SPD=0] means that the model is behaving fairly in regards of the selected attribute (e.g. race, gender) | ||
* Values between stem:[-0.1<SPD<0.1] mean that the model is reasonably fair and the score can be attributed to other factors, such as sample size. | ||
* An SPD outside this range would be an indicator of an unfair model relative to the protected attributes. | ||
* A negative value of statistical parity difference indicates that the unprivileged group is at a disadvantage | ||
* A positive value indicates that the privileged group is at a disadvantage. | ||
|
||
The formal definition of SPD is | ||
|
||
[stem] | ||
++++ | ||
SPD=p(y=1|Du)-p(y=1|Dp) | ||
++++ | ||
|
||
where y=1 is the favourable outcome and Du, Dp are respectively the privileged and unprivileged group data. | ||
|
||
=== Disparate Impact Ratio (DIR) | ||
|
||
Similarly to the Statistical Parity Difference, the Disparate Impact Ratio (DIR) measures imbalances in positive outcome predictions across privileged and unprivileged groups. | ||
Instead of calculating the difference, this metric calculates the ratio of such selection rates. Typically: | ||
|
||
* stem:[DIR=1] means that the model is fair with regards to the protected attribute. | ||
* stem:[0.8<DIR<1.2] means that the model is reasonably fair. | ||
|
||
The formal definition of the Disparate Impact Ratio is: | ||
|
||
[stem] | ||
++++ | ||
DIR=p(y=1|Du)p(y=1|Dp) | ||
++++ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
= Drift metrics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
= Local explainers |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,12 @@ | |
<script async src="https://www.googletagmanager.com/gtag/js?id={{this}}"></script> | ||
<script>function gtag(){dataLayer.push(arguments)};window.dataLayer=window.dataLayer||[];gtag('js',new Date());gtag('config','{{this}}')</script> | ||
{{/with}} | ||
<!-- The loading of KaTeX is deferred to speed up page rendering --> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-XjKyOOlGwcjNTAIQHIpgOno0Hl1YQqzUOEleOLALmuqehneUG+vnGctmUb0ZY0l8" crossorigin="anonymous"></script> | ||
|
||
<!-- To automatically render math in text elements, include the auto-render extension: --> | ||
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" crossorigin="anonymous" | ||
onload="renderMathInElement(document.body);"></script> | ||
{{!-- | ||
<script>var uiRootPath = '{{{uiRootPath}}}'</script> | ||
--}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV" crossorigin="anonymous"> |