Skip to content

Commit 6aeaecb

Browse files
committed
mlflow: Add model type to training run tags
Signed-off-by: Phoevos Kalemkeris <phoevos.kalemkeris@ucl.ac.uk>
1 parent a3d1f16 commit 6aeaecb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/management/tracker_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ def save_model(
574574

575575
artifact_uri = mlflow.get_artifact_uri(model_name)
576576
mlflow.set_tag("training.output.model_uri", artifact_uri)
577+
mlflow.set_tag("training.output.model_type", model_type)
577578

578579
return artifact_uri
579580

tests/app/monitoring/test_tracker_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def test_save_model(mlflow_fixture):
182182
[
183183
call("training.output.package", "file.zip"),
184184
call("training.output.model_uri", artifact_uri),
185+
call("training.output.model_type", "model_type"),
185186
],
186187
any_order=False,
187188
)

0 commit comments

Comments
 (0)