update jenkinsfile_train-sacred, predict.py
This commit is contained in:
parent
b16fce0beb
commit
3d2efac477
@ -17,6 +17,7 @@ pipeline {
|
|||||||
stage('Script'){
|
stage('Script'){
|
||||||
steps {
|
steps {
|
||||||
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
|
copyArtifacts filter: '*', projectName: 's444356-create-dataset'
|
||||||
|
sh 'rm -rf my_model'
|
||||||
sh "python Biblioteka_DL/dllib-mlflow.py $EPOCHS"
|
sh "python Biblioteka_DL/dllib-mlflow.py $EPOCHS"
|
||||||
archiveArtifacts artifacts: 'games_model.pkl'
|
archiveArtifacts artifacts: 'games_model.pkl'
|
||||||
archiveArtifacts artifacts: 'mlruns/**'
|
archiveArtifacts artifacts: 'mlruns/**'
|
||||||
|
@ -13,4 +13,4 @@ with open(f'{logged_model}/'+input) as f:
|
|||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
input_example = np.array([data['inputs'][0]], dtype=np.float32)
|
input_example = np.array([data['inputs'][0]], dtype=np.float32)
|
||||||
|
|
||||||
loaded_model.predict(input_example)
|
print(f'Prediction: {loaded_model.predict(input_example)}')
|
Loading…
Reference in New Issue
Block a user