From dc99264daaba7deaf8ab87e10490090a8a3da8e9 Mon Sep 17 00:00:00 2001 From: Dominik Strzako Date: Sun, 23 May 2021 21:55:25 +0200 Subject: [PATCH] Test on s434704 --- Jenkinsfile_predict | 2 +- Zadanie_09_MLflow_Predict.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile_predict b/Jenkinsfile_predict index 52d0db4..2fcbe6e 100644 --- a/Jenkinsfile_predict +++ b/Jenkinsfile_predict @@ -13,7 +13,7 @@ pipeline { { steps { - copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-training/train', selector: buildParameter('WHICH_BUILD')) + copyArtifacts(fingerprintArtifacts: true, projectName: 's434704-training/master', selector: buildParameter('WHICH_BUILD')) } } stage('predict') diff --git a/Zadanie_09_MLflow_Predict.py b/Zadanie_09_MLflow_Predict.py index d6d321a..4aad0d5 100644 --- a/Zadanie_09_MLflow_Predict.py +++ b/Zadanie_09_MLflow_Predict.py @@ -1,7 +1,7 @@ import mlflow import pandas as pd -model = mlflow.keras.load_model("my_model") -data = pd.read_json('my_model\input_example.json', orient='index') +model = mlflow.keras.load_model("movies_on_streaming_platforms_model") +data = pd.read_json('movies_on_streaming_platforms_model\input_example.json', orient='index') print(data) print(model.predict(data)) \ No newline at end of file