update predict.py, jenkinsfile_predict
All checks were successful
s444356-evaluation/pipeline/head This commit looks good
s444356-training/pipeline/head This commit looks good

This commit is contained in:
Maciej Czajka 2022-05-11 19:02:01 +02:00
parent a4a85d4e41
commit 26b0736758
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ pipeline {
stages {
stage('Script') {
steps {
copyArtifacts filter: '*', projectName: 's444409-training/main', selector: lastSuccessful()
copyArtifacts projectName: 's444409-training/main', selector: lastSuccessful()
sh 'ls -al'
sh "python predict.py"
}

View File

@ -4,7 +4,7 @@ import pandas as pd
#logged_model = 'mlruns/1/d5b6f9c1784a4d2dbb8592cd4ad364d7/artifacts/model'
logged_model = 'mlruns/1/fa3e620f03e64d888c364827907fb6f5/artifacts/s444409'
logged_model = 'mlruns/1/fa3e620f03e64d888c364827907fb6f5/artifacts/s444409/'
loaded_model = mlflow.pyfunc.load_model(logged_model)