From 3764bc0d701d8e7e3b69aee6b73b9cb4d947b7f3 Mon Sep 17 00:00:00 2001 From: Tetsuo Kiso Date: Wed, 24 Aug 2022 13:29:51 +0000 Subject: [PATCH] Use 'confidence' instead of deprecated 'alpha' for scipy.stats.t.interval --- 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 ed9bafcb..9de432e3 100644 --- a/explainaboard/metrics/metric.py +++ b/explainaboard/metrics/metric.py @@ -336,7 +336,7 @@ def calc_confidence_interval( if my_std == 0.0: return (float(my_mean), float(my_mean)) return stats_t.interval( - alpha=conf_value, + confidence=conf_value, df=stats_data.shape[-2] - 1, loc=my_mean, scale=my_std,