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
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