Skip to content

Commit

Permalink
Merge branch 'main' into XianzheMa/fix-dimension-prob-with-binary-cla…
Browse files Browse the repository at this point in the history
…ssfication
  • Loading branch information
XianzheMa authored Sep 11, 2024
2 parents 785dac0 + 4e1550d commit 37c4cb2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ def _run_evaluation(
assert self.model_downloader is not None
assert self.context and self.context.pipeline_config is not None

# Since the metric objects are stateful, we need to re-instantiate them before each evaluation.
self._metrics = setup_metrics(self.config.evaluation.dataset.metrics)

evaluation_dataloader = prepare_trigger_dataloader_fixed_keys(
self.dataloader_info, [key for key, _ in interval_data]
)
Expand Down

0 comments on commit 37c4cb2

Please sign in to comment.