update predict.py
All checks were successful
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head This commit looks good

This commit is contained in:
Maciej Czajka 2022-05-11 19:20:06 +02:00
parent a7d5b42ebf
commit c3e2d8ed56

View File

@ -3,7 +3,8 @@ import mlflow
import pandas as pd
logged_model = 'mlruns/1/fa3e620f03e64d888c364827907fb6f5/artifacts/s444409'
loaded_model = mlflow.pyfunc.load_model(logged_model)
logged_model2 = 'mlruns/1/fa3e620f03e64d888c364827907fb6f5/artifacts/s444409/data/model.pth'
loaded_model = mlflow.pyfunc.load_model(logged_model2)
with open(f'{logged_model}/input_example.json') as f: