File size: 376 Bytes
d2a8669
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
library(aif360)
install_aif360()


load_aif360_lib()



dd <- aif360::binary_label_dataset(
  data_path = system.file("extdata", "data.csv", package="aif360"),
  favor_label=0,
  unfavor_label=1,
  unprivileged_protected_attribute=0,
  privileged_protected_attribute=1,
  target_column="income",
  protected_attribute="sex")

dd$favorable_label
dd$labels
dd$unfavorable_label