update predict.py, jenkinsfile_predict
This commit is contained in:
parent
a4a85d4e41
commit
26b0736758
@ -8,7 +8,7 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Script') {
|
stage('Script') {
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts filter: '*', projectName: 's444409-training/main', selector: lastSuccessful()
|
copyArtifacts projectName: 's444409-training/main', selector: lastSuccessful()
|
||||||
sh 'ls -al'
|
sh 'ls -al'
|
||||||
sh "python predict.py"
|
sh "python predict.py"
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ import pandas as pd
|
|||||||
|
|
||||||
|
|
||||||
#logged_model = 'mlruns/1/d5b6f9c1784a4d2dbb8592cd4ad364d7/artifacts/model'
|
#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)
|
loaded_model = mlflow.pyfunc.load_model(logged_model)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user