.
This commit is contained in:
parent
46b44fd2f5
commit
5c77cd8402
@ -10,9 +10,9 @@ from sklearn.metrics import mean_squared_error
|
|||||||
from sacred.observers import MongoObserver
|
from sacred.observers import MongoObserver
|
||||||
|
|
||||||
ex = Experiment("434784_sacred_scopes", interactive=False, save_git_info=False)
|
ex = Experiment("434784_sacred_scopes", interactive=False, save_git_info=False)
|
||||||
ex.observers.append(FileStorageObserver('sacred_runs'))
|
ex.observers.append(FileStorageObserver('sacred_runs/runs'))
|
||||||
# ex.observers.append(MongoObserver(
|
ex.observers.append(MongoObserver(
|
||||||
# url='mongodb://mongo_user:mongo_password_IUM_2021@localhost:27017', db_name='sacred'))
|
url='mongodb://mongo_user:mongo_password_IUM_2021@localhost:27017', db_name='sacred'))
|
||||||
|
|
||||||
|
|
||||||
@ex.config
|
@ex.config
|
||||||
|
@ -37,7 +37,7 @@ pipeline {
|
|||||||
image.inside{
|
image.inside{
|
||||||
sh 'chmod +x training.py'
|
sh 'chmod +x training.py'
|
||||||
sh 'chmod +x sacred_training.py'
|
sh 'chmod +x sacred_training.py'
|
||||||
sh 'python3 training.py ${EPOCHS} ${BATCH_SIZE}'
|
// sh 'python3 training.py ${EPOCHS} ${BATCH_SIZE}'
|
||||||
sh 'python3 sacred_training.py'
|
sh 'python3 sacred_training.py'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -46,15 +46,15 @@ pipeline {
|
|||||||
stage('archive-model') {
|
stage('archive-model') {
|
||||||
steps{
|
steps{
|
||||||
archiveArtifacts 'suicide_model.h5'
|
archiveArtifacts 'suicide_model.h5'
|
||||||
archiveArtifacts 'sacred_runs/**'
|
archiveArtifacts 'sacred_runs/**'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('send-mail') {
|
// stage('send-mail') {
|
||||||
steps{
|
// steps{
|
||||||
emailext body: currentBuild.result ?: 'SUCCESS',
|
// emailext body: currentBuild.result ?: 'SUCCESS',
|
||||||
subject: 's434784-training',
|
// subject: 's434784-training',
|
||||||
to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
// to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user