Input file fix

This commit is contained in:
MatOgr 2022-05-15 12:58:35 +02:00
parent f256c6bf16
commit 6515322f1c

View File

@ -5,6 +5,6 @@ import json
model = mlflow.pyfunc.load_model( model = mlflow.pyfunc.load_model(
'mlruns/1/4b83e774512444188fb587288818c298/artifacts/model') 'mlruns/1/4b83e774512444188fb587288818c298/artifacts/model')
with open('input_example.json') as f: with open('scripts/input_example.json') as f:
data = np.array([json.load(f)['inputs'][0]], dtype=np.float32) data = np.array([json.load(f)['inputs'][0]], dtype=np.float32)
print(f"Predicted values: {model.predict(data.reshape(-1, 2))}") print(f"Predicted values: {model.predict(data.reshape(-1, 2))}")