-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Changed metric names from acronym to actual name * Metric name cleanup in flow * Reverted changes in aequitas plots * Update previous plots to support new naming scheme * Remove dictionary from bubble concatenation chart * Change reference to aequitas flow * Remove duplicated argument --------- Co-authored-by: Sérgio Jesus <sergio.jesus@feedzai.com>
- Loading branch information
1 parent
59c1a02
commit 8da3f6b
Showing
11 changed files
with
239 additions
and
161 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
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
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
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,20 @@ | ||
from typing import Literal | ||
|
||
FAIRNESS_METRICS = ["Predictive Equality", "Equal Opportunity", "Demographic Parity"] | ||
PERFORMANCE_METRICS = ["TPR", "FPR", "FNR", "Accuracy", "Precision"] | ||
|
||
METRIC_NAMES = { | ||
"Predictive Equality": "fpr_ratio", | ||
"Equal Opportunity": "tpr_ratio", | ||
"Demographic Parity": "pprev_ratio", | ||
"TPR": "tpr", | ||
"FPR": "fpr", | ||
"FNR": "fnr", | ||
"Accuracy": "accuracy", | ||
"Precision": "precision", | ||
} | ||
|
||
FAIRNESS_METRIC = Literal[ | ||
"Predictive Equality", "Equal Opportunity", "Demographic Parity" | ||
] | ||
PERFORMANCE_METRIC = Literal["TPR", "FPR", "FNR", "Accuracy", "Precision"] |
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
Oops, something went wrong.