changed version

This commit is contained in:
Dawid 2021-05-23 19:18:44 +02:00
parent 1ea84c709d
commit 2512690467
2 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,6 @@ pipeline {
stages { stages {
stage('training') { stage('training') {
steps { steps {
sh 'export MLFLOW_TRACKING_URI=http://172.17.0.1:5000'
sh 'chmod +x pred_from_mlflow_model.py' sh 'chmod +x pred_from_mlflow_model.py'
sh 'python3 pred_from_mlflow_model.py' sh 'python3 pred_from_mlflow_model.py'
} }

View File

@ -3,7 +3,7 @@ import mlflow as mlf
import pandas as pd import pandas as pd
model_name = "s430705" model_name = "s430705"
model_version = 8 model_version = 1
mlf.set_tracking_uri("http://172.17.0.1:5000") mlf.set_tracking_uri("http://172.17.0.1:5000")
model = mlf.pyfunc.load_model( model = mlf.pyfunc.load_model(
model_uri=f"models:/{model_name}/{model_version}" model_uri=f"models:/{model_name}/{model_version}"