mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] Fix model summarizer abbr (#1789)
* fix pip version * fix pip version * fix model summarizer abbr --------- Co-authored-by: root <bittersweet1999>
This commit is contained in:
parent
ae9efb73ad
commit
357ce8c7a4
@ -133,8 +133,7 @@ class AlpacaSummarizer:
|
||||
dataset, subdir_path, self.judge_function)
|
||||
win_model1, win_model2, categories = defaultdict(
|
||||
float), defaultdict(float), defaultdict(float)
|
||||
model1, model2 = references[0]['answer1'], references[0][
|
||||
'answer2']
|
||||
|
||||
for prediction, reference in zip(judged_answers,
|
||||
references):
|
||||
categories['total'] += 1
|
||||
|
@ -117,8 +117,6 @@ class CompassArenaSummarizer:
|
||||
win_model1 = defaultdict(float)
|
||||
win_model2 = defaultdict(float)
|
||||
categories = defaultdict(float)
|
||||
model1 = references[0]['answer1']
|
||||
model2 = references[0]['answer2']
|
||||
for prediction, reference in zip(judged_answers, references):
|
||||
categories[dataset_abbr] += 1
|
||||
categories[reference['capability']] += 1
|
||||
|
Loading…
Reference in New Issue
Block a user