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
1e1dbaf3
Commit
1e1dbaf3
authored
Nov 06, 2023
by
lintangsutawika
Browse files
remove samples in the table
parent
6eac0056
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lm_eval/evaluator.py
lm_eval/evaluator.py
+8
-0
No files found.
lm_eval/evaluator.py
View file @
1e1dbaf3
...
@@ -571,6 +571,10 @@ def evaluate(
...
@@ -571,6 +571,10 @@ def evaluate(
_versions
=
collections
.
defaultdict
(
dict
)
_versions
=
collections
.
defaultdict
(
dict
)
for
task
in
results_agg
:
for
task
in
results_agg
:
task_results
=
results_agg
[
task
]
task_results
=
results_agg
[
task
]
if
"samples"
in
task_results
:
task_results
.
pop
(
"samples"
)
tab_string
=
""
tab_string
=
""
if
"tab"
in
task_results
:
if
"tab"
in
task_results
:
tab
=
task_results
.
pop
(
"tab"
)
tab
=
task_results
.
pop
(
"tab"
)
...
@@ -589,6 +593,10 @@ def evaluate(
...
@@ -589,6 +593,10 @@ def evaluate(
_groups_agg
=
collections
.
defaultdict
(
dict
)
_groups_agg
=
collections
.
defaultdict
(
dict
)
for
group
in
groups_agg
:
for
group
in
groups_agg
:
group_results
=
groups_agg
[
group
]
group_results
=
groups_agg
[
group
]
if
"samples"
in
group_results
:
group_results
.
pop
(
"samples"
)
tab_string
=
""
tab_string
=
""
if
"tab"
in
group_results
:
if
"tab"
in
group_results
:
tab
=
group_results
.
pop
(
"tab"
)
tab
=
group_results
.
pop
(
"tab"
)
...
...
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