Print experiment info
Some checks failed
s434704-predict-s426206-from-registry/pipeline/head There was a failure building this commit

This commit is contained in:
Wojciech Jarmosz 2021-05-23 23:14:10 +02:00
parent acb8e81b4f
commit 797e893eda

View File

@ -18,9 +18,9 @@ model_name = "s426206"
input = str(arguments[0])
model = mlflow.pyfunc.load_model(
model_uri=f"models:/{model_name}/{model_version}"
)
experiment = client.get_latest_versions(model_name, stages=None)
print(experiment)
with open(f'{model_name}/{input}', 'r') as file:
json_data = json.load(file)