Skip to content

Commit

Permalink
default for get task metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
janiceblue committed Jul 18, 2023
1 parent 9d0fc41 commit c9f3980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocpmodels/trainers/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(
self.evaluator = Evaluator(
task=name,
eval_metrics=self.config["task"].get(
"evaluation_metrics", Evaluator.task_metrics[name]
"evaluation_metrics", Evaluator.task_metrics.get(name, {})
),
)

Expand Down Expand Up @@ -952,7 +952,7 @@ def validate(self, split="val", disable_tqdm=False):
evaluator = Evaluator(
task=self.name,
eval_metrics=self.config["task"].get(
"evaluation_metrics", Evaluator.task_metrics[self.name]
"evaluation_metrics", Evaluator.task_metrics.get(self.name, {})
),
)

Expand Down

0 comments on commit c9f3980

Please sign in to comment.