parametrization of number of epochs
Some checks failed
s444354-training/pipeline/head There was a failure building this commit
Some checks failed
s444354-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
098f5cabfb
commit
3033b4db86
12
Jenkinsfile3
12
Jenkinsfile3
@ -2,15 +2,19 @@ pipeline {
|
||||
agent {
|
||||
dockerfile true
|
||||
}
|
||||
|
||||
|
||||
|
||||
parameters{
|
||||
string(
|
||||
defaultValue: '1500',
|
||||
description: 'Epoch number',
|
||||
name: 'EPOCH_NUMBER'
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Copy') {
|
||||
steps {
|
||||
copyArtifacts projectName: 's444354-create-dataset'
|
||||
sh 'python3 ./pytorch/pytorch.py'
|
||||
sh 'python3 ./pytorch/pytorch.py $EPOCH_NUMBER'
|
||||
}
|
||||
}
|
||||
stage('Archive') {
|
||||
|
@ -149,7 +149,7 @@ def fit(epochs, lr, model, train_loader, val_loader, opt_func=torch.optim.SGD):
|
||||
# In[12]:
|
||||
|
||||
|
||||
epochs = 1500
|
||||
epochs = sys.argv[1]
|
||||
lr = 1e-6
|
||||
history5 = fit(epochs, lr, model, train_loader, val_loader)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user