Closed noorazhaoz closed 1 year ago
Hi @noora-maki! Can you provide a working snippet of code where an error could be reproduced?
Hi @noora-maki! Can you provide a working snippet of code where an error could be reproduced?
Thanks for response.
I just imported the dataset (attached). 1.xlsx The protected attribute is sex,
X1$sex <- as.factor(X1$sex)
and then try applying pre-processing techniques to this dataset,
X1_changed <- disparate_impact_remover( data = X1, protected = X1$sex, features_to_transform = 'age', lambda = 1 ) Then the error occurred.
@noora-maki data must be in the form of a dataframe. Try doing
X1 <- as.data.frame(read_excel("1.xlsx"))
Hope it helps
Thanks! That works!! I'll close it. Thanks a million.
I tried different datasets, the following error always occurred,