Skip to content

Commit

Permalink
Use 'confidence' instead of deprecated 'alpha' for scipy.stats.t.inte…
Browse files Browse the repository at this point in the history
…rval (#403)
  • Loading branch information
tetsuok authored Oct 16, 2022
1 parent 5d9a3b5 commit a44e151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explainaboard/metrics/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def calc_confidence_interval(
if my_std == 0.0:
return (float(my_mean), float(my_mean))
return stats_t.interval(
alpha=1.0 - confidence_alpha, # See ExplainaBoard/issues/510
confidence=1.0 - confidence_alpha, # See ExplainaBoard/issues/510
df=stats_data.shape[-2] - 1,
loc=my_mean,
scale=my_std,
Expand Down

0 comments on commit a44e151

Please sign in to comment.