diff --git a/Jenkinsfile_predict_r b/Jenkinsfile_predict_r index 9fd705f..11530ee 100644 --- a/Jenkinsfile_predict_r +++ b/Jenkinsfile_predict_r @@ -18,7 +18,7 @@ pipeline { { steps { - copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD')) + copyArtifacts(fingerprintArtifacts: true, projectName: 's434695-training/train', selector: buildParameter('WHICH_BUILD')) } } stage('predict') diff --git a/Zadanie_09_MLflow_Predict_Registry.py b/Zadanie_09_MLflow_Predict_Registry.py index fc9c781..829fd22 100644 --- a/Zadanie_09_MLflow_Predict_Registry.py +++ b/Zadanie_09_MLflow_Predict_Registry.py @@ -4,11 +4,11 @@ import pandas as pd mlflow.set_tracking_uri("http://172.17.0.1:5000") client = MlflowClient() -version = 0 +version = "c579d6" model_name = "s434788" -for mv in client.search_model_versions(f"name='{model_name}'"): - if int(mv.version) > version: - version = int(mv.version) +#for mv in client.search_model_versions(f"name='{model_name}'"): +# if int(mv.version) > version: +# version = int(mv.version) model = mlflow.keras.load_model( model_uri=f"models:/{model_name}/{version}"