Skip to content

Commit

Permalink
chore: tweak summary messaging
Browse files Browse the repository at this point in the history
  • Loading branch information
ijdoc committed Oct 10, 2024
1 parent ef29347 commit 8a4e132
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions drift/check_drift.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 8a4e132

Please sign in to comment.