Change training model params
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
2a3a047b7a
commit
85b20518a4
@ -4,7 +4,8 @@ pipeline {
|
||||
}
|
||||
parameters {
|
||||
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
||||
string(name: 'options', description: 'Trainig script options')
|
||||
string(name: 'epochs', description: 'Model epochs')
|
||||
string(name: 'verbose', description: 'Model verbose')
|
||||
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build', name: 'BUILD_SELECTOR')
|
||||
}
|
||||
stages {
|
||||
@ -15,7 +16,7 @@ pipeline {
|
||||
}
|
||||
stage("Run training"){
|
||||
steps {
|
||||
sh "python3 training.py ${params.options}"
|
||||
sh "python3 training.py ${params.verbose}" ${params.epochs}"
|
||||
}
|
||||
}
|
||||
stage('Save trained model files') {
|
||||
|
@ -11,9 +11,8 @@ from tensorflow.keras.layers.experimental import preprocessing
|
||||
|
||||
arguments = sys.argv[1:]
|
||||
|
||||
verbose = [command.split('=')[1] for command in arguments if command.split('=')[0] == 'verbose']
|
||||
epochs = [command.split('=')[1] for command in arguments if command.split('=')[0] == 'epochs']
|
||||
|
||||
verbose = arguments[0]
|
||||
epochs = arguments[1]
|
||||
|
||||
pd.set_option("display.max_columns", None)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user