Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
6e48110e
Commit
6e48110e
authored
Jul 10, 2025
by
Baber
Browse files
nit
parent
9a7b9dd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
lm_eval/api/group.py
lm_eval/api/group.py
+5
-1
No files found.
lm_eval/api/group.py
View file @
6e48110e
...
@@ -49,7 +49,11 @@ class GroupConfig(dict):
...
@@ -49,7 +49,11 @@ class GroupConfig(dict):
AggMetricConfig
(
**
item
)
if
isinstance
(
item
,
dict
)
else
item
AggMetricConfig
(
**
item
)
if
isinstance
(
item
,
dict
)
else
item
for
item
in
self
.
aggregate_metric_list
for
item
in
self
.
aggregate_metric_list
]
]
self
.
version
=
self
.
version
or
self
.
metadata
.
get
(
"version"
,
"1.0"
)
self
.
version
=
(
self
.
version
or
self
.
metadata
.
get
(
"version"
,
"1.0"
)
if
self
.
metadata
else
"1.0"
)
def
to_dict
(
self
,
keep_callable
:
bool
=
False
)
->
dict
:
def
to_dict
(
self
,
keep_callable
:
bool
=
False
)
->
dict
:
"""dumps the current config as a dictionary object, as a printable format.
"""dumps the current config as a dictionary object, as a printable format.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment