Spaces:
Sleeping
Sleeping
Zekun Wu
commited on
Commit
·
7a70a60
1
Parent(s):
9dd76eb
update
Browse files- util/evaluation.py +2 -1
util/evaluation.py
CHANGED
|
@@ -98,10 +98,11 @@ def statistical_tests(data):
|
|
| 98 |
|
| 99 |
for (var1, var2) in pairs:
|
| 100 |
pair_name_score = f'{var1}{score_suffix} vs {var2}{score_suffix}'
|
|
|
|
| 101 |
|
| 102 |
# Bootstrapped T-test for independent samples
|
| 103 |
t_stat, t_p = bootstrap_t_test(data[f'{var1}{rank_suffix}'], data[f'{var2}{rank_suffix}'])
|
| 104 |
-
pairwise_results['T-Test'][
|
| 105 |
|
| 106 |
# Friedman test
|
| 107 |
friedman_stat, friedman_p = friedmanchisquare(*rank_data)
|
|
|
|
| 98 |
|
| 99 |
for (var1, var2) in pairs:
|
| 100 |
pair_name_score = f'{var1}{score_suffix} vs {var2}{score_suffix}'
|
| 101 |
+
pair_rank_score = f'{var1}{rank_suffix} vs {var2}{rank_suffix}'
|
| 102 |
|
| 103 |
# Bootstrapped T-test for independent samples
|
| 104 |
t_stat, t_p = bootstrap_t_test(data[f'{var1}{rank_suffix}'], data[f'{var2}{rank_suffix}'])
|
| 105 |
+
pairwise_results['T-Test'][pair_rank_score] = {"Statistic": t_stat, "p-value": t_p}
|
| 106 |
|
| 107 |
# Friedman test
|
| 108 |
friedman_stat, friedman_p = friedmanchisquare(*rank_data)
|