Skip to content

Commit

Permalink
examples: add uuid's to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
jtsextonMITRE committed Sep 10, 2024
1 parent a0fa394 commit 37c7d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/v1-client-tensorflow-mnist-classifier/demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,9 @@
"outputs": [],
"source": [
"from mlflow.tracking import MlflowClient\n",
"from uuid import UUID\n",
"mlflow_client = MlflowClient()\n",
"mlflow_runid = client.jobs.get_mlflow_run_id(infer_job['id'])['mlflowRunId'].replace('-','') # why\n",
"print(mlflow_runid)\n",
"mlflow_runid = UUID(client.jobs.get_mlflow_run_id(infer_job['id'])['mlflowRunId']).hex\n",
"mlflow_run = mlflow_client.get_run(mlflow_runid)\n",
"pprint.pprint(mlflow_run.data.metrics)"
]
Expand Down

0 comments on commit 37c7d37

Please sign in to comment.