Log to artifacts
This commit is contained in:
parent
e93d644059
commit
1679fac800
@ -36,6 +36,9 @@ pipeline {
|
|||||||
stage('Train model') {
|
stage('Train model') {
|
||||||
steps {
|
steps {
|
||||||
sh "python train_model.py -e ${params.EPOCHS} -b ${params.BATCHSIZE}"
|
sh "python train_model.py -e ${params.EPOCHS} -b ${params.BATCHSIZE}"
|
||||||
|
archiveArtifacts artifacts: 'model_out', onlyIfSuccessful: true
|
||||||
|
archiveArtifacts artifacts: 'mlruns/**', onlyIfSuccessful: true
|
||||||
|
sh 'rm -r mlruns'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Evaluate model') {
|
stage('Evaluate model') {
|
||||||
|
@ -14,7 +14,7 @@ default_epochs = 5
|
|||||||
|
|
||||||
device = "cuda" if torch.cuda.is_available() else "cpu"
|
device = "cuda" if torch.cuda.is_available() else "cpu"
|
||||||
|
|
||||||
mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
# mlflow.set_tracking_uri("http://172.17.0.1:5000")
|
||||||
mlflow.set_experiment("s444409")
|
mlflow.set_experiment("s444409")
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user