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
4e4f0de2
Commit
4e4f0de2
authored
Sep 12, 2023
by
lintangsutawika
Browse files
changed term to groups
parent
f7d98500
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
lm_eval/utils.py
lm_eval/utils.py
+5
-3
main.py
main.py
+2
-2
No files found.
lm_eval/utils.py
View file @
4e4f0de2
...
...
@@ -267,9 +267,11 @@ def make_table(result_dict, column: str = "results"):
from
pytablewriter
import
MarkdownTableWriter
,
LatexTableWriter
if
column
==
"results"
:
column_name
=
"Task"
elif
column
==
"aggregate"
:
column_name
=
"Benchmark"
column_name
=
"Tasks"
elif
column
==
"groups"
:
column_name
=
"Groups"
elif
column
==
"benchmarks"
:
column_name
=
"Benchmarks"
md_writer
=
MarkdownTableWriter
()
latex_writer
=
LatexTableWriter
()
...
...
main.py
View file @
4e4f0de2
...
...
@@ -209,8 +209,8 @@ def main() -> None:
f
"batch_size:
{
args
.
batch_size
}{
f
' (
{
batch_sizes
}
)
' if batch_sizes else ''
}
"
)
print
(
evaluator
.
make_table
(
results
))
if
"
aggregate
"
in
results
:
print
(
evaluator
.
make_table
(
results
,
"
aggregate
"
))
if
"
groups
"
in
results
:
print
(
evaluator
.
make_table
(
results
,
"
groups
"
))
if
__name__
==
"__main__"
:
...
...
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