mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00

* bbeh * bbeh * fix_smallbugs_bbeh * removeprint * harmonic * update_summerizer * harmonic-tested * harmonic-tested * clean * clean * cleaned_rebased --------- Co-authored-by: yufeng zhao <zhaoyufeng@pjlab.org.cn>
30 lines
883 B
Python
30 lines
883 B
Python
from mmengine.config import read_base
|
|
|
|
with read_base():
|
|
from .groups.bbeh import bbeh_summary_groups
|
|
|
|
# Get all the BBEH subset names from the imported bbeh_summary_groups
|
|
bbeh_subsets = []
|
|
for group in bbeh_summary_groups:
|
|
if group['name'] == 'bbeh':
|
|
bbeh_subsets = group['subsets']
|
|
break
|
|
|
|
summarizer = dict(
|
|
# Include both individual datasets and the summary metrics we want to see
|
|
dataset_abbrs=bbeh_subsets + ['bbeh_naive_average'] + ['bbeh_harmonic_mean'],
|
|
|
|
# Define the summary group for bbeh
|
|
summary_groups=[
|
|
{
|
|
'name': 'bbeh_naive_average',
|
|
'subsets': bbeh_subsets,
|
|
'metric': 'naive_average' # Explicitly specify the metric to use
|
|
},
|
|
{
|
|
'name': 'bbeh_harmonic_mean',
|
|
'subsets': bbeh_subsets,
|
|
'metric': 'harmonic_mean'
|
|
}
|
|
]
|
|
) |