Skip to content

Commit

Permalink
shap version change
Browse files Browse the repository at this point in the history
  • Loading branch information
swag2198 committed Jun 25, 2024
1 parent d51c26d commit c5ed0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aix360/algorithms/ecertify/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_SHAP_classifier(label_x0, phi, phi0, x0, EX):
Returns:
Callable, sklearn ridge regression: linear classifier form of shap explanation
"""
coef = np.divide(phi[label_x0], (x0 - EX), where=(x0 - EX)!=0)
coef = np.divide(phi[label_x0], (x0 - EX).values, where=(x0 - EX).values!=0)
g = sklearn.linear_model.Ridge(alpha=1.0, fit_intercept=True)#, normalize=False)
g.coef_ = coef
g.intercept_ = phi0[label_x0]
Expand Down

0 comments on commit c5ed0d4

Please # to comment.