This commit is contained in:
Dominik Strzako 2021-05-27 12:50:10 +02:00
parent 898551d710
commit 1eacefde73

View File

@ -6,9 +6,9 @@ mlflow.set_tracking_uri("http://172.17.0.1:5000")
client = MlflowClient()
version = 3
model_name = "s434695"
#for mv in client.search_model_versions(f"name='{model_name}'"):
# if int(mv.version) > version:
# version = int(mv.version)
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}")