Skip to content

Commit

Permalink
Fix exponential gradient reduction without protected attribute (Trust…
Browse files Browse the repository at this point in the history
…ed-AI#267)

Signed-off-by: Drago Plecko <www.plecko@gmail.com>
  • Loading branch information
jdnklau authored and dplecko committed Nov 5, 2021
1 parent 1f1d63a commit 1fd8e71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ def predict_proba(self, X):
``self.classes_``.
"""
if self.drop_prot_attr:
X = X.drop(self.prot_attr)
X = X.drop(self.prot_attr, axis=1)

return self.model._pmf_predict(X)

0 comments on commit 1fd8e71

Please sign in to comment.