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
79788d35
Commit
79788d35
authored
Jul 21, 2025
by
Baber
Browse files
nit
parent
87a59d41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lm_eval/api/group.py
lm_eval/api/group.py
+3
-3
pyproject.toml
pyproject.toml
+2
-2
No files found.
lm_eval/api/group.py
View file @
79788d35
from
dataclasses
import
asdict
,
dataclass
from
inspect
import
getsource
from
typing
import
Any
,
Callable
,
List
,
Optional
,
Union
from
typing
import
Any
,
Callable
,
Optional
,
Union
@
dataclass
class
AggMetricConfig
(
dict
):
metric
:
Optional
[
str
]
=
None
aggregation
:
Optional
[
str
]
=
"mean"
weight_by_size
:
Optional
[
str
]
=
False
weight_by_size
:
bool
=
False
# list of filter names which should be incorporated into the aggregated metric.
filter_list
:
Optional
[
Union
[
str
,
list
]]
=
"none"
...
...
@@ -27,7 +27,7 @@ class GroupConfig(dict):
group_alias
:
Optional
[
str
]
=
None
task
:
Optional
[
Union
[
str
,
list
]]
=
None
aggregate_metric_list
:
Optional
[
Union
[
L
ist
[
AggMetricConfig
],
AggMetricConfig
,
dict
]
Union
[
l
ist
[
AggMetricConfig
],
AggMetricConfig
,
dict
]
]
=
None
version
:
Optional
[
str
]
=
None
metadata
:
Optional
[
dict
]
=
(
...
...
pyproject.toml
View file @
79788d35
...
...
@@ -105,8 +105,8 @@ plugins.md034.enabled = false # no-bare-urls
[tool.ruff]
target-version
=
"py39"
extend-select
=
[
"I"
,
"UP"
,
"E"
,
"C419"
,
"F"
,
"B"
,
"SIM"
]
ignore
=
[
"E402"
,
"E731"
,
"E501"
,
"E111"
,
"E114"
,
"E117"
]
lint.
extend-select
=
[
"I"
,
"UP"
,
"E"
,
"C419"
,
"F"
,
"B"
,
"SIM"
]
lint.
ignore
=
[
"E402"
,
"E731"
,
"E501"
,
"E111"
,
"E114"
,
"E117"
]
[tool.ruff.lint.isort]
combine-as-imports
=
true
...
...
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