IUM_07 - fix models/Jenkinsfile, update create_model.py
This commit is contained in:
parent
b2c46dcd54
commit
93a4420755
@ -33,12 +33,6 @@ def config():
|
|||||||
weight_decay = 0.001
|
weight_decay = 0.001
|
||||||
num_epochs = 1000
|
num_epochs = 1000
|
||||||
|
|
||||||
# Learning parameters from sys.argv
|
|
||||||
if len(sys.argv) > 1:
|
|
||||||
num_epochs = int(sys.argv[1])
|
|
||||||
learning_rate = float(sys.argv[2])
|
|
||||||
weight_decay = float(sys.argv[3])
|
|
||||||
|
|
||||||
@ex.automain
|
@ex.automain
|
||||||
def experiment(hidden_size, learning_rate, weight_decay, num_epochs, _run):
|
def experiment(hidden_size, learning_rate, weight_decay, num_epochs, _run):
|
||||||
# Seed for reproducibility
|
# Seed for reproducibility
|
||||||
|
2
models/Jenkinsfile
vendored
2
models/Jenkinsfile
vendored
@ -50,7 +50,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
sh "chmod +x ./create_model.py"
|
sh "chmod +x ./create_model.py"
|
||||||
sh "python3 ./create_model.py with 'epochs=${params.epochs}' 'learning_rate=${params.learning_rate}' 'weight_decay=${params.weight_decay}'"
|
sh "python3 ./create_model.py with 'num_epochs=${params.epochs}' 'learning_rate=${params.learning_rate}' 'weight_decay=${params.weight_decay}'"
|
||||||
|
|
||||||
def experiment_id = readFile('experiment_id.txt').trim()
|
def experiment_id = readFile('experiment_id.txt').trim()
|
||||||
archiveArtifacts artifacts: "my_runs/${experiment_id}/*", onlyIfSuccessful: true
|
archiveArtifacts artifacts: "my_runs/${experiment_id}/*", onlyIfSuccessful: true
|
||||||
|
Loading…
Reference in New Issue
Block a user