From c13f5462f91eab449fafc8fc3f2171dccb83ce7e Mon Sep 17 00:00:00 2001 From: s444501 Date: Fri, 13 May 2022 02:58:09 +0200 Subject: [PATCH] mlflow --- s444356.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/s444356.py b/s444356.py index bb08e30..686d1d2 100644 --- a/s444356.py +++ b/s444356.py @@ -7,6 +7,5 @@ model = mlflow.pyfunc.load_model('mlruns/1/4b83e774512444188fb587288818c298/arti with open('input_example.json') as file: data = json.load(file) input_example = np.array([data['inputs'][0]]).reshape(-1, 2) - print('Predictions:') - for pred in model.predict(input_example): - print(pred) + print('Input: ', input_example) + print('Predictions: ', model.predict(input_example))