You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* move arguments
* add filtering out metrics
* update documentation
* refactor code with tidyverse style"
* documentation change
* add consistency in plot and doc
* Add R versions and change linux version
* add instruction for adding new metric
* refactor code
* Add readme info
* remove mac 3.5
* update version
* change link
Copy file name to clipboardExpand all lines: NEWS.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,12 @@
1
+
# fairmodels 1.2.0
2
+
* Added filtering metrics when plotting and printing of `fairness_object`.
3
+
* Added ability to add custom measure function to print method of `fairness_object`
4
+
* Refactored code with tidyverse style
5
+
* Changed the order of metrics in `metric_scores` plot to match the ones in `fairness_check`
6
+
* Added instruction for creating custom metric in README
7
+
* Added references to vignettes
8
+
* Enhanced the advanced vignette
9
+
1
10
# fairmodels 1.1.1
2
11
* Fixed error which appeared when 2 fairness objects had the same labels in them. Now if this appears it throws an error. [(#41)](https://github.com/ModelOriented/fairmodels/issues/41)
3
12
*`privileged` parameter is now converted to character. [(#41)](https://github.com/ModelOriented/fairmodels/issues/41)
Copy file name to clipboardExpand all lines: R/all_cutoffs.R
+49-56Lines changed: 49 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -7,98 +7,106 @@
7
7
#' @param grid_points numeric, grid for cutoffs to test. Number of points between 0 and 1 spread evenly
8
8
#' @param fairness_metrics character, name of parity_loss metric or vector of multiple metrics names. Full names can be found in \code{fairness_check} documentation.
9
9
#'
10
+
#' @import ggplot2
11
+
#'
10
12
#' @return \code{all_cutoffs} object, \code{data.frame} containing information about label, metric and parity_loss at particular cutoff
11
13
#' @export
12
14
#'
13
15
#' @examples
14
16
#' data("german")
15
17
#'
16
-
#' y_numeric <- as.numeric(german$Risk) -1
18
+
#' y_numeric <- as.numeric(german$Risk) -1
17
19
#'
18
-
#' lm_model <- glm(Risk~.,
19
-
#' data = german,
20
-
#' family=binomial(link="logit"))
20
+
#' lm_model <- glm(Risk ~ .,
21
+
#' data = german,
22
+
#' family = binomial(link = "logit")
23
+
#' )
21
24
#'
22
-
#' explainer_lm <- DALEX::explain(lm_model, data = german[,-1], y = y_numeric)
25
+
#' explainer_lm <- DALEX::explain(lm_model, data = german[,-1], y = y_numeric)
0 commit comments