From 8a4e132727e5ca36cfe812f8f13d692d18a3ff99 Mon Sep 17 00:00:00 2001 From: JDoc Date: Thu, 10 Oct 2024 09:11:24 -0400 Subject: [PATCH] chore: tweak summary messaging --- drift/check_drift.py | 10 +++++----- evaluate.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drift/check_drift.py b/drift/check_drift.py index 29c10e5..8076611 100644 --- a/drift/check_drift.py +++ b/drift/check_drift.py @@ -81,9 +81,9 @@ issue_title = f"Data drift detected on {train_artifact.name}" issue_body = ( f"Data drift has been detected when comparing the registered training dataset " - f"with recent production data. Please review the [candidate artifact " - f"`{artifact.name}`](https://wandb.ai/{run.entity}/{run.project}/artifacts/{artifact.type}/{artifact.name}) " - f"(originally logged as {artifact.source_name}) and the [generated drift report]({report_url}) " + f"with recent production data. Please review the [generated drift report]({report_url}), and the" + f"[candidate artifact](https://wandb.ai/{run.entity}/{run.project}/artifacts/{artifact.type}/{artifact.name}) " + f"`{artifact.name}` (originally logged as `{prod_artifact.source_name}`), " f"to determine if the registered training data should be updated.\n\n" f"To approve the new candidate after review, link it to the training Dataset Registry" f"`{registered_training_dataset}`. Otherwise close this issue." @@ -98,8 +98,8 @@ else: print("> No drift detected.\n") - print(f"- [W&B Run]({run.url})") - print(f"- [Full data drift report]({report_url})") + print(f"- [W&B Drift Check Run]({run.url})") + print(f"- [Full Data Drift Report]({report_url})") # Optionally print the drift detection result in a parseable format. # Helpful if you want to use this result in a CI/CD pipeline diff --git a/evaluate.py b/evaluate.py index a1a2b2d..e7b7e73 100644 --- a/evaluate.py +++ b/evaluate.py @@ -138,7 +138,7 @@ "The candidate model has been promoted to the [production model registry](https://wandb.ai/registry/model?selectionPath=jdoc-org%2Fwandb-registry-model%2Fproduction&view=versions)!" ) -print(f"- [W&B Run]({wandb.run.url})") +print(f"- [W&B Evaluation Run]({wandb.run.url})") # Finish W&B run wandb.finish()