From 12692f1645cf206f00aaf0a40248ceeff988f659 Mon Sep 17 00:00:00 2001 From: MatOgr Date: Sun, 15 May 2022 12:54:51 +0200 Subject: [PATCH] Different run test --- scripts/predict_s444356_registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/predict_s444356_registry.py b/scripts/predict_s444356_registry.py index fc858b7..b54293c 100644 --- a/scripts/predict_s444356_registry.py +++ b/scripts/predict_s444356_registry.py @@ -6,7 +6,7 @@ import os print('################\n\n', os.listdir(), "\n\n###############") model = mlflow.pyfunc.load_model( - '../mlruns/13/da5c6167bb45403fa35569849a1fbc13/artifacts/model') -with open('../mlruns/13/da5c6167bb45403fa35569849a1fbc13/artifacts/model/input_example.json') as f: + 'mlruns/1/4b83e774512444188fb587288818c298/artifacts/model') +with open('mlruns/1/4b83e774512444188fb587288818c298/artifacts/model/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))}")