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
2d843472
Commit
2d843472
authored
May 01, 2023
by
jon-tow
Browse files
feat: temp remove bootstrap calc
parent
83dbfbf6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
lm_eval/evaluator.py
lm_eval/evaluator.py
+6
-9
No files found.
lm_eval/evaluator.py
100644 → 100755
View file @
2d843472
...
...
@@ -284,15 +284,12 @@ def evaluate(
# hotfix: bleu, chrf, ter seem to be really expensive to bootstrap
# so we run them less iterations. still looking for a cleaner way to do this
stderr
=
lm_eval
.
metrics
.
stderr_for_metric
(
metric
=
task
.
aggregation
()[
real_metric
],
bootstrap_iters
=
min
(
bootstrap_iters
,
1000
)
if
metric
in
[
"bleu"
,
"chrf"
,
"ter"
]
else
bootstrap_iters
,
)
if
stderr
is
not
None
:
results
[
task_name
][
metric
+
"_stderr"
]
=
stderr
(
items
)
# stderr = lm_eval.metrics.stderr_for_metric(
# metric=task.aggregation()[real_metric],
# bootstrap_iters=min(bootstrap_iters, 1000)
# if metric in ["bleu", "chrf", "ter"]
# else bootstrap_iters,
# )
return
{
"results"
:
dict
(
results
),
"versions"
:
dict
(
versions
)}
...
...
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