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
34d1ac6b
"example/vscode:/vscode.git/clone" did not exist on "af055f4b357e72b017c506d29f94748797e0c7ed"
Commit
34d1ac6b
authored
Sep 22, 2023
by
Chris
Browse files
Use 'is' for boolean comparison
parent
b4c72cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lm_eval/api/task.py
lm_eval/api/task.py
+1
-1
No files found.
lm_eval/api/task.py
View file @
34d1ac6b
...
@@ -557,7 +557,7 @@ class ConfigurableTask(Task):
...
@@ -557,7 +557,7 @@ class ConfigurableTask(Task):
for
key
in
metric_config
for
key
in
metric_config
if
key
not
in
[
"metric"
,
"aggregation"
,
"higher_is_better"
,
"hf_evaluate"
]
if
key
not
in
[
"metric"
,
"aggregation"
,
"higher_is_better"
,
"hf_evaluate"
]
}
}
hf_evaluate_metric
=
"hf_evaluate"
in
metric_config
and
metric_config
[
"hf_evaluate"
]
==
True
hf_evaluate_metric
=
"hf_evaluate"
in
metric_config
and
metric_config
[
"hf_evaluate"
]
is
True
if
self
.
config
.
process_results
is
not
None
:
if
self
.
config
.
process_results
is
not
None
:
self
.
_metric_fn_list
[
metric_name
]
=
None
self
.
_metric_fn_list
[
metric_name
]
=
None
...
...
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