!!!!
This commit is contained in:
parent
d7f5dc3aec
commit
f10aeb31a0
@ -20,6 +20,7 @@ pipeline {
|
|||||||
{
|
{
|
||||||
sh 'rm -r my_model'
|
sh 'rm -r my_model'
|
||||||
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD'))
|
copyArtifacts(fingerprintArtifacts: true, projectName: 's434788-training/mlflow', selector: buildParameter('WHICH_BUILD'))
|
||||||
|
sh 'ls'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('predict')
|
stage('predict')
|
||||||
|
@ -19,7 +19,7 @@ model = mlflow.keras.load_model(
|
|||||||
model_uri=f"models:/{model_name}/{version}"
|
model_uri=f"models:/{model_name}/{version}"
|
||||||
)
|
)
|
||||||
|
|
||||||
data = pd.read_json('my_model/input_example.json', orient='split')
|
data = pd.read_json('my_model/input_example.json', orient='index')
|
||||||
|
|
||||||
print(data)
|
print(data)
|
||||||
print(model.predict(data))
|
print(model.predict(data))
|
Loading…
Reference in New Issue
Block a user