ModelOriented / fairmodels

Flexible tool for bias detection, visualization, and mitigation
https://fairmodels.drwhy.ai/
GNU General Public License v3.0
85 stars 15 forks source link

Passing only fairness_objects to fairness_check #36

Closed katherineking4 closed 3 years ago

katherineking4 commented 3 years ago

I was trying to pass three fairness objects into fairness_check to plot them all at once. This was the error I received: _Error in fairness_check(fairness_train_sex_cutoff, protected = analysis_train$sex, : object 'parityloss' not found

It looks like when an explainer is not passed to fairness_check the parity loss object is not created but the names of this object are referenced later [_colnames(parity_loss_metric_data) <- names(parityloss)] so the function fails

jakwisn commented 3 years ago

Thanks for the issue! The bug should be now fixed.