From f10aeb31a0c9b19cacba28a7ffd6110c1ccdfb28 Mon Sep 17 00:00:00 2001 From: Dominik Strzako Date: Thu, 27 May 2021 13:15:32 +0200 Subject: [PATCH] !!!! --- Jenkinsfile_predict_r | 1 + Zadanie_09_MLflow_Predict_Registry.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile_predict_r b/Jenkinsfile_predict_r index f5abe34..4e85165 100644 --- a/Jenkinsfile_predict_r +++ b/Jenkinsfile_predict_r @@ -20,6 +20,7 @@ pipeline { { sh 'rm -r my_model' copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD')) + sh 'ls' } } stage('predict') diff --git a/Zadanie_09_MLflow_Predict_Registry.py b/Zadanie_09_MLflow_Predict_Registry.py index 7ba1b18..f570dcf 100644 --- a/Zadanie_09_MLflow_Predict_Registry.py +++ b/Zadanie_09_MLflow_Predict_Registry.py @@ -19,7 +19,7 @@ model = mlflow.keras.load_model( model_uri=f"models:/{model_name}/{version}" ) -data = pd.read_json('my_model/input_example.json', orient='split') +data = pd.read_json('my_model/input_example.json', orient='index') print(data) print(model.predict(data)) \ No newline at end of file