Commit 34d1ac6b authored by Chris's avatar Chris
Browse files

Use 'is' for boolean comparison

parent b4c72cb9
......@@ -557,7 +557,7 @@ class ConfigurableTask(Task):
for key in metric_config
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:
self._metric_fn_list[metric_name] = None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment