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
321aef35
Unverified
Commit
321aef35
authored
Aug 04, 2023
by
Hailey Schoelkopf
Committed by
GitHub
Aug 04, 2023
Browse files
Merge pull request #734 from EleutherAI/fix-table
[Refactor] Remove Unused Variable in Make-Table
parents
0a0f879c
c098188d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
lm_eval/utils.py
lm_eval/utils.py
+2
-5
No files found.
lm_eval/utils.py
View file @
321aef35
...
...
@@ -286,7 +286,6 @@ def make_table(result_dict, column="results"):
latex_writer
.
headers
=
[
column_name
,
"Version"
,
"Fewshot"
,
"Filter"
,
"Metric"
,
"Value"
,
...
...
@@ -298,7 +297,6 @@ def make_table(result_dict, column="results"):
for
k
,
dic
in
result_dict
[
column
].
items
():
version
=
result_dict
[
"versions"
][
k
]
n
=
str
(
result_dict
[
"configs"
][
k
][
"num_fewshot"
])
for
(
mf
),
v
in
dic
.
items
():
m
,
_
,
f
=
mf
.
partition
(
","
)
if
m
.
endswith
(
"_stderr"
):
...
...
@@ -306,11 +304,10 @@ def make_table(result_dict, column="results"):
if
m
+
"_stderr"
+
","
+
f
in
dic
:
se
=
dic
[
m
+
"_stderr"
+
","
+
f
]
values
.
append
([
k
,
version
,
n
,
f
,
m
,
"%.4f"
%
v
,
"±"
,
"%.4f"
%
se
])
values
.
append
([
k
,
version
,
f
,
m
,
"%.4f"
%
v
,
"±"
,
"%.4f"
%
se
])
else
:
values
.
append
([
k
,
version
,
n
,
f
,
m
,
"%.4f"
%
v
,
""
,
""
])
values
.
append
([
k
,
version
,
f
,
m
,
"%.4f"
%
v
,
""
,
""
])
k
=
""
n
=
""
version
=
""
md_writer
.
value_matrix
=
values
latex_writer
.
value_matrix
=
values
...
...
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