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 20:18:32 +02:00
parent a1b13aa789
commit 30a09f0f7d

View File

@ -11,6 +11,6 @@ loaded_model = mlflow.pyfunc.load_model(logged_model)
with open(f'{logged_model}/'+input) as f:
data = json.load(f)
input_example = np.array([data['inputs'][0]], dtype=np.float64)
input_example = np.array([data['inputs'][0]], dtype=np.float32)
loaded_model.predict(input_example)