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
ebfff08f
Unverified
Commit
ebfff08f
authored
Aug 30, 2023
by
Lintang Sutawika
Committed by
GitHub
Aug 30, 2023
Browse files
Update task.py
parent
8d1d003d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lm_eval/api/task.py
lm_eval/api/task.py
+1
-3
No files found.
lm_eval/api/task.py
View file @
ebfff08f
...
@@ -1038,9 +1038,7 @@ class ConfigurableTask(Task):
...
@@ -1038,9 +1038,7 @@ class ConfigurableTask(Task):
if
self
.
multiple_target
:
if
self
.
multiple_target
:
acc
=
1.0
if
pred
in
gold
else
0.0
acc
=
1.0
if
pred
in
gold
else
0.0
acc_norm
=
1.0
if
pred_norm
in
gold
else
0.0
acc_norm
=
1.0
if
pred_norm
in
gold
else
0.0
exact_match
=
int
(
exact_match
=
int
(
any
([
is_greedy
[
i
]
if
i
!=
-
100
else
0
for
i
in
gold
]))
any
([
is_greedy
[
i
]
if
i
!=
-
100
else
0
for
i
in
gold
])
)
else
:
else
:
acc
=
1.0
if
pred
==
gold
else
0.0
acc
=
1.0
if
pred
==
gold
else
0.0
acc_norm
=
1.0
if
pred_norm
==
gold
else
0.0
acc_norm
=
1.0
if
pred_norm
==
gold
else
0.0
...
...
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