Skip to content

Commit 5668cb0

Browse files
authored
Issue #38 (#39)
* plot scale fix and regression * description and fixes * test and fixes * update tests * Bump version and update NEWS * fix plot density * Update links and descriptions * add NEWS entry * update README * add seed
1 parent fea9bd1 commit 5668cb0

31 files changed

+3271
-2243
lines changed

DESCRIPTION

+34-34
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
Package: fairmodels
2-
Type: Package
3-
Title: Flexible Tool for Bias Detection, Visualization, and Mitigation
4-
Version: 1.0.1
5-
Authors@R:
6-
c(person("Jakub", "Wiśniewski", role = c("aut", "cre"),
7-
email = "[email protected]"),
8-
person("Przemysław", "Biecek", role = c("aut"),
9-
comment = c(ORCID = "0000-0001-8423-1823")))
10-
Description: Measure fairness metrics in one place for many models. Check how big is model's bias towards different races, sex, nationalities etc. Use measures such as Statistical Parity, Equal odds to detect the discrimination against unprivileged groups. Visualize the bias using heatmap, radar plot, biplot, bar chart (and more!). There are various pre-processing and post-processing bias mitigation algorithms implemented. Find more details in (Wiśniewski, Biecek (2021)) <arXiv:2104.00507>.
11-
License: GPL-3
12-
Encoding: UTF-8
13-
LazyData: true
14-
Depends: R (>= 3.5)
15-
Imports:
16-
DALEX,
17-
ggplot2,
18-
patchwork,
19-
ggdendro,
20-
ggrepel,
21-
scales
22-
Suggests:
23-
ranger,
24-
gbm,
25-
knitr,
26-
rmarkdown,
27-
covr,
28-
testthat,
29-
spelling
30-
RoxygenNote: 7.1.1.9000
31-
VignetteBuilder: knitr
32-
URL: http://fairmodels.drwhy.ai/
33-
BugReports: https://github.com/ModelOriented/fairmodels/issues
34-
Language: en-US
1+
Package: fairmodels
2+
Type: Package
3+
Title: Flexible Tool for Bias Detection, Visualization, and Mitigation
4+
Version: 1.1.0
5+
Authors@R:
6+
c(person("Jakub", "Wiśniewski", role = c("aut", "cre"),
7+
email = "[email protected]"),
8+
person("Przemysław", "Biecek", role = c("aut"),
9+
comment = c(ORCID = "0000-0001-8423-1823")))
10+
Description: Measure fairness metrics in one place for many models. Check how big is model's bias towards different races, sex, nationalities etc. Use measures such as Statistical Parity, Equal odds to detect the discrimination against unprivileged groups. Visualize the bias using heatmap, radar plot, biplot, bar chart (and more!). There are various pre-processing and post-processing bias mitigation algorithms implemented. Package also supports calculating fairness metrics for regression models. Find more details in (Wiśniewski, Biecek (2021)) <arXiv:2104.00507>.
11+
License: GPL-3
12+
Encoding: UTF-8
13+
LazyData: true
14+
Depends: R (>= 3.5)
15+
Imports:
16+
DALEX,
17+
ggplot2,
18+
patchwork,
19+
ggdendro,
20+
ggrepel,
21+
scales
22+
Suggests:
23+
ranger,
24+
gbm,
25+
knitr,
26+
rmarkdown,
27+
covr,
28+
testthat,
29+
spelling
30+
RoxygenNote: 7.1.1.9001
31+
VignetteBuilder: knitr
32+
URL: https://fairmodels.drwhy.ai/
33+
BugReports: https://github.com/ModelOriented/fairmodels/issues
34+
Language: en-US

NAMESPACE

+71-65
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,71 @@
1-
# Generated by roxygen2: do not edit by hand
2-
3-
S3method(plot,all_cutoffs)
4-
S3method(plot,ceteris_paribus_cutoff)
5-
S3method(plot,chosen_metric)
6-
S3method(plot,fairness_heatmap)
7-
S3method(plot,fairness_object)
8-
S3method(plot,fairness_pca)
9-
S3method(plot,fairness_radar)
10-
S3method(plot,group_metric)
11-
S3method(plot,metric_scores)
12-
S3method(plot,performance_and_fairness)
13-
S3method(plot,stacked_metrics)
14-
S3method(plot_fairmodels,default)
15-
S3method(plot_fairmodels,explainer)
16-
S3method(plot_fairmodels,fairness_object)
17-
S3method(print,all_cutoffs)
18-
S3method(print,ceteris_paribus_cutoff)
19-
S3method(print,chosen_metric)
20-
S3method(print,fairness_heatmap)
21-
S3method(print,fairness_object)
22-
S3method(print,fairness_pca)
23-
S3method(print,fairness_radar)
24-
S3method(print,group_metric)
25-
S3method(print,metric_scores)
26-
S3method(print,performance_and_fairness)
27-
S3method(print,stacked_metrics)
28-
export(all_cutoffs)
29-
export(calculate_group_fairness_metrics)
30-
export(ceteris_paribus_cutoff)
31-
export(choose_metric)
32-
export(confusion_matrix)
33-
export(disparate_impact_remover)
34-
export(expand_fairness_object)
35-
export(fairness_check)
36-
export(fairness_heatmap)
37-
export(fairness_pca)
38-
export(fairness_radar)
39-
export(group_matrices)
40-
export(group_metric)
41-
export(group_model_performance)
42-
export(metric_scores)
43-
export(performance_and_fairness)
44-
export(plot_density)
45-
export(plot_fairmodels)
46-
export(pre_process_data)
47-
export(resample)
48-
export(reweight)
49-
export(roc_pivot)
50-
export(stack_metrics)
51-
import(ggplot2)
52-
import(patchwork)
53-
importFrom(DALEX,model_performance)
54-
importFrom(DALEX,theme_drwhy)
55-
importFrom(DALEX,theme_drwhy_vertical)
56-
importFrom(ggdendro,dendro_data)
57-
importFrom(ggdendro,segment)
58-
importFrom(ggrepel,geom_text_repel)
59-
importFrom(stats,dist)
60-
importFrom(stats,ecdf)
61-
importFrom(stats,hclust)
62-
importFrom(stats,median)
63-
importFrom(stats,na.omit)
64-
importFrom(stats,quantile)
65-
importFrom(utils,head)
1+
# Generated by roxygen2: do not edit by hand
2+
3+
S3method(plot,all_cutoffs)
4+
S3method(plot,ceteris_paribus_cutoff)
5+
S3method(plot,chosen_metric)
6+
S3method(plot,fairness_heatmap)
7+
S3method(plot,fairness_object)
8+
S3method(plot,fairness_pca)
9+
S3method(plot,fairness_radar)
10+
S3method(plot,fairness_regression_object)
11+
S3method(plot,group_metric)
12+
S3method(plot,metric_scores)
13+
S3method(plot,performance_and_fairness)
14+
S3method(plot,stacked_metrics)
15+
S3method(plot_fairmodels,default)
16+
S3method(plot_fairmodels,explainer)
17+
S3method(plot_fairmodels,fairness_object)
18+
S3method(print,all_cutoffs)
19+
S3method(print,ceteris_paribus_cutoff)
20+
S3method(print,chosen_metric)
21+
S3method(print,fairness_heatmap)
22+
S3method(print,fairness_object)
23+
S3method(print,fairness_pca)
24+
S3method(print,fairness_radar)
25+
S3method(print,fairness_regression_object)
26+
S3method(print,group_metric)
27+
S3method(print,metric_scores)
28+
S3method(print,performance_and_fairness)
29+
S3method(print,stacked_metrics)
30+
export(all_cutoffs)
31+
export(calculate_group_fairness_metrics)
32+
export(ceteris_paribus_cutoff)
33+
export(choose_metric)
34+
export(confusion_matrix)
35+
export(disparate_impact_remover)
36+
export(expand_fairness_object)
37+
export(fairness_check)
38+
export(fairness_check_regression)
39+
export(fairness_heatmap)
40+
export(fairness_pca)
41+
export(fairness_radar)
42+
export(group_matrices)
43+
export(group_metric)
44+
export(group_model_performance)
45+
export(metric_scores)
46+
export(performance_and_fairness)
47+
export(plot_density)
48+
export(plot_fairmodels)
49+
export(pre_process_data)
50+
export(regression_metrics)
51+
export(resample)
52+
export(reweight)
53+
export(roc_pivot)
54+
export(stack_metrics)
55+
import(ggplot2)
56+
import(patchwork)
57+
importFrom(DALEX,model_performance)
58+
importFrom(DALEX,theme_drwhy)
59+
importFrom(DALEX,theme_drwhy_vertical)
60+
importFrom(ggdendro,dendro_data)
61+
importFrom(ggdendro,segment)
62+
importFrom(ggrepel,geom_text_repel)
63+
importFrom(stats,binomial)
64+
importFrom(stats,dist)
65+
importFrom(stats,ecdf)
66+
importFrom(stats,glm)
67+
importFrom(stats,hclust)
68+
importFrom(stats,median)
69+
importFrom(stats,na.omit)
70+
importFrom(stats,quantile)
71+
importFrom(utils,head)

NEWS.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# fairmodels 1.1.0
2+
* Added function `fairness_check_regression()` that supports regression models along with 2 plot types [(#38)](https://github.com/ModelOriented/fairmodels/issues/38).
3+
* Added additional tests.
4+
* Modularized `fairness_check()` code.
5+
* Changed x-axis ticks generation in `fairness_check()`.
6+
* Fixed issues with `plot_density
7+
* Updated links in README and DESCRIPTION.
8+
19
# fairmodels 1.0.1
210
* Changed examples - added parameter `num.threads = 1` to `ranger` and added *donttest{}* to examples with long computation time.
311

@@ -7,20 +15,20 @@
715
* Fixed links in DESCRIPTION and README.
816

917
# fairmodels 0.2.6
10-
* Fixed bug which appeared when two fairness objects were passed to `fairness_check` without an explainer. (#36)
18+
* Fixed bug which appeared when two fairness objects were passed to `fairness_check` without an explainer. [(#36)](https://github.com/ModelOriented/fairmodels/issues/36)
1119

1220
# fairmodels 0.2.5
1321
* Extended documentation for `epsilon` parameter in `fairness_check()` function.
1422

1523
# fairmodels 0.2.4
1624
* Deleted on-load information message about four-fifths rule.
17-
* Fixed bug with `NA` warning in metrics that are not chosen. (#32)
25+
* Fixed bug with `NA` warning in metrics that are not chosen. [(#32)](https://github.com/ModelOriented/fairmodels/issues/32)
1826

1927
# fairmodels 0.2.3
20-
* Fixed the way the `parity_loss` is calculated in `all_cutoffs` and `ceteris_paribus_cutoff`. (#24)
28+
* Fixed the way the `parity_loss` is calculated in `all_cutoffs` and `ceteris_paribus_cutoff`. [(#24)](https://github.com/ModelOriented/fairmodels/issues/24)
2129
* Updated vignettes
22-
* changed documentation of functions to explicitly state metrics instead of `fairness_check_metrics()`. (#29)
23-
* Fixed typos (#27 and #28)
30+
* changed documentation of functions to explicitly state metrics instead of `fairness_check_metrics()`. [(#29)](https://github.com/ModelOriented/fairmodels/issues/29)
31+
* Fixed typos ([#27](https://github.com/ModelOriented/fairmodels/issues/27) and [#28](https://github.com/ModelOriented/fairmodels/issues/28))
2432
* Changed conclusion drawn from density plot in `Basic Tutorial` (#26)
2533

2634
# fairmodels 0.2.2

0 commit comments

Comments
 (0)