ver fix?
This commit is contained in:
parent
2244eb2ff6
commit
2cb6062a0d
@ -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')
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user