Zaktualizuj 'lab_09_predict_coop.py'

This commit is contained in:
Michał Zaręba 2021-05-29 12:20:21 +02:00
parent 8bd2593486
commit 8a3820f6c3

View File

@ -4,7 +4,7 @@ import pandas as pd
from pprint import pprint from pprint import pprint
from mlflow.tracking import MlflowClient from mlflow.tracking import MlflowClient
model_name = "s430705" model_name = "s434804"
model_version = 30 model_version = 30
mlflow.set_tracking_uri("http://172.17.0.1:5000") mlflow.set_tracking_uri("http://172.17.0.1:5000")
@ -20,7 +20,7 @@ version of choosen model, and then get path to model's files
""" """
client = MlflowClient() client = MlflowClient()
models_version = client.search_model_versions("name='s430705'") models_version = client.search_model_versions("name='s434804'")
path_to_input = models_version[-1].source path_to_input = models_version[-1].source
with open(f'{path_to_input}/input_example.json', 'r') as datafile: with open(f'{path_to_input}/input_example.json', 'r') as datafile: