Skip to content

Commit

Permalink
fix std to account for averaging
Browse files Browse the repository at this point in the history
  • Loading branch information
slundberg committed Jun 15, 2022
1 parent a8dbefd commit a791685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shap/benchmark/_sequential.py
Expand Up @@ -180,7 +180,7 @@ def __call__(self, name, explanation, *model_args, percent=0.01, indices=[], y=N
yp = self.score_values[-1][j]
curves[j,:] = np.interp(xs, xp, yp)
ys = curves.mean(0)
std = curves.std(0)
std = curves.std(0) / np.sqrt(curves.shape[0])
auc = sklearn.metrics.auc(np.linspace(0, 1, len(ys)), curve_sign*(ys-ys[0]))

if not debug_mode:
Expand Down

0 comments on commit a791685

Please sign in to comment.