From 6515322f1c52a8cbd2c06c6f009ee7ed53c01e72 Mon Sep 17 00:00:00 2001 From: MatOgr Date: Sun, 15 May 2022 12:58:35 +0200 Subject: [PATCH] Input file fix --- scripts/predict_s444356.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/predict_s444356.py b/scripts/predict_s444356.py index 7d514a0..dd5044d 100644 --- a/scripts/predict_s444356.py +++ b/scripts/predict_s444356.py @@ -5,6 +5,6 @@ import json model = mlflow.pyfunc.load_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) print(f"Predicted values: {model.predict(data.reshape(-1, 2))}")