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
ef7588b6
"client_example/19_pool/max_pool2d_fwd.cpp" did not exist on "d821d1e54f6ce8131070a1253dfc4dd6662d3d85"
Commit
ef7588b6
authored
Jul 17, 2023
by
lintangsutawika
Browse files
add column as option
parent
1f6d3cd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lm_eval/utils.py
lm_eval/utils.py
+2
-2
No files found.
lm_eval/utils.py
View file @
ef7588b6
...
...
@@ -259,7 +259,7 @@ class Grouper:
return
res
def
make_table
(
result_dict
):
def
make_table
(
result_dict
,
column
=
"results"
):
"""Generate table of results."""
from
pytablewriter
import
MarkdownTableWriter
,
LatexTableWriter
...
...
@@ -278,7 +278,7 @@ def make_table(result_dict):
values
=
[]
for
k
,
dic
in
result_dict
[
"results"
].
items
():
for
k
,
dic
in
result_dict
[
column
].
items
():
version
=
result_dict
[
"versions"
][
k
]
for
(
mf
),
v
in
dic
.
items
():
m
,
_
,
f
=
mf
.
partition
(
","
)
...
...
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