Skip to content

Commit

Permalink
Fix bad error
Browse files Browse the repository at this point in the history
Signed-off-by: Antoni Baum <antoni.baum@protonmail.com>
  • Loading branch information
Yard1 committed Mar 18, 2023
1 parent bc80a3f commit 09d2f40
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4287,7 +4287,7 @@ def pdp(show: bool = True):
try:
# interpret>=0.3.1
pdp = PartialDependence(model=model, data=test_X)
except AttributeError:
except TypeError:
try:
pdp = PartialDependence(
predict_fn=model.predict_proba, data=test_X
Expand Down

0 comments on commit 09d2f40

Please sign in to comment.