Fix the summary error in subjective.py (#1363)

This commit is contained in:
WANG WENJIN 2024-07-25 18:36:13 +08:00 committed by GitHub
parent 8fe75e9937
commit 0aad8199c7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@ class SubjectiveSummarizer:
orient='index',
columns=models_order)
# Insert a new row at the top for the dataset names
df.insert(0, 'Detailed Scores', list(scores.keys()))
df.insert(0, 'Detailed Scores', df.index.values)
df.insert(0, 'Dataset',
[dataset_name for _ in range(len(df.index))])
dfs[dataset_name] = df