From b57eabb37124032602f83e932ae34dc0b1d93bc4 Mon Sep 17 00:00:00 2001 From: Si11ium Date: Thu, 6 Aug 2020 08:12:08 +0200 Subject: [PATCH] InterSpeech Camera Ready Reporting --- util/metric_reader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/metric_reader.py b/util/metric_reader.py index ae31c3e..4301db6 100644 --- a/util/metric_reader.py +++ b/util/metric_reader.py @@ -37,7 +37,7 @@ if __name__ == '__main__': metric_dict[header].append(float(value)) except ValueError: metric_dict[header].append(value) - for score, func in zip(['mean', 'max', 'median', 'std'], [np.mean, np.max, np.median, np.std]): + for score, func in zip(['max'], [np.max]): # [np.mean, np.max, np.median, np.std]): try: uar_scores[score].append(round(func(np.asarray(metric_dict['uar_score'])) * 100, 2)) except ValueError as e: @@ -51,7 +51,7 @@ if __name__ == '__main__': if not file_existed: writer.writeheader() # file doesn't exist yet, write a header try: - for row_idx in range(len(uar_scores['mean'])): + for row_idx in range(len(uar_scores['max'])): writer.writerow({key: uar_scores[key][row_idx] for key in headers}) except IndexError: - print('could not read: ') \ No newline at end of file + print('could not read: ')