Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions packages/evaluate/src/weathergen/evaluate/run_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,18 @@ def evaluate_from_config(cfg, mlflow_client: MlflowClient | None) -> None:
parent_run_id=parent_run.info.run_id,
nested=True,
) as run:
mlflow.set_tags(MlFlowUpload.run_tags(run_id, phase, from_run_id))
log_scores(
reordered_dict[run_id],
mlflow_client,
run.info.run_id,
channels_set,
)
try:
mlflow.set_tags(MlFlowUpload.run_tags(run_id, phase, from_run_id))
log_scores(
reordered_dict[run_id],
mlflow_client,
run.info.run_id,
channels_set,
)
except Exception as e:
_logger.error(f"Error logging scores for run {run_id}: {e}")
mlflow.end_run(status="FAILED")
raise

# plot summary
if scores_dict and cfg.evaluation.get("summary_plots", True):
Expand Down