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
66b3c3a2
Unverified
Commit
66b3c3a2
authored
Nov 08, 2023
by
Lintang Sutawika
Committed by
GitHub
Nov 08, 2023
Browse files
Update task.py
parent
59b5471c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
lm_eval/api/task.py
lm_eval/api/task.py
+1
-4
No files found.
lm_eval/api/task.py
View file @
66b3c3a2
...
...
@@ -953,10 +953,7 @@ class ConfigurableTask(Task):
def
process_results
(
self
,
doc
,
results
):
if
callable
(
self
.
config
.
process_results
):
try
:
return
self
.
config
.
process_results
(
self
,
doc
,
results
)
except
:
return
self
.
config
.
process_results
(
doc
,
results
)
return
self
.
config
.
process_results
(
doc
,
results
)
result_dict
=
{}
use_metric
=
list
(
self
.
_metric_fn_list
.
keys
())
...
...
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