From 898551d710c244c1446e3a59d361dd68be34b432 Mon Sep 17 00:00:00 2001 From: Dominik Strzako Date: Thu, 27 May 2021 12:48:20 +0200 Subject: [PATCH] gwegwg --- Zadanie_09_MLflow_Predict_Registry.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Zadanie_09_MLflow_Predict_Registry.py b/Zadanie_09_MLflow_Predict_Registry.py index 2465814..63967c3 100644 --- a/Zadanie_09_MLflow_Predict_Registry.py +++ b/Zadanie_09_MLflow_Predict_Registry.py @@ -5,11 +5,15 @@ import pandas as pd mlflow.set_tracking_uri("http://172.17.0.1:5000") client = MlflowClient() version = 3 -model_name = "s434788" +model_name = "s434695" #for mv in client.search_model_versions(f"name='{model_name}'"): # if int(mv.version) > version: # version = int(mv.version) +print(f"selected version {version}") + +print(f"I will search for URI: models:/{model_name}/{version}") + model = mlflow.keras.load_model( model_uri=f"models:/{model_name}/{version}" )