Skip to content

Commit

Permalink
Fix predict_proba with drop_prot_attr
Browse files Browse the repository at this point in the history
close #363
  • Loading branch information
hoffmansc committed Sep 3, 2022
1 parent 297379a commit ed452b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aif360/sklearn/inprocessing/grid_search_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ 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)

if isinstance(self.model_.constraints, red.ClassificationMoment):
return self.model_.predict_proba(X)
Expand Down

0 comments on commit ed452b0

Please sign in to comment.