From a44e151a6ded00137a738cf6da9f41a62048f257 Mon Sep 17 00:00:00 2001 From: Tetsuo Kiso Date: Mon, 17 Oct 2022 08:30:24 +0900 Subject: [PATCH] Use 'confidence' instead of deprecated 'alpha' for scipy.stats.t.interval (#403) --- explainaboard/metrics/metric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/explainaboard/metrics/metric.py b/explainaboard/metrics/metric.py index 58710260..7a8e1ed5 100644 --- a/explainaboard/metrics/metric.py +++ b/explainaboard/metrics/metric.py @@ -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,