Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Shashank Mittal <[email protected]>
  • Loading branch information
shashank-iitbhu committed Sep 7, 2024
1 parent f8b1a1f commit 564ec61
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions examples/v1beta1/hp-tuning/hyperopt-distribution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ spec:
maxTrialCount: 12
maxFailedTrialCount: 3
parameters:
- name: lr
parameterType: double
feasibleSpace:
min: "0.01"
max: "0.05"
step: "0.01"
distribution: "uniform"
- name: momentum
parameterType: double
feasibleSpace:
min: "0.5"
max: "0.9"
distribution: "logUniform"
# - name: lr
# parameterType: double
# feasibleSpace:
# min: "0.01"
# max: "0.05"
# step: "0.01"
# distribution: "uniform"
# - name: momentum
# parameterType: double
# feasibleSpace:
# min: "0.5"
# max: "0.9"
# distribution: "logUniform"
- name: weight_decay
parameterType: double
feasibleSpace:
Expand All @@ -45,12 +45,12 @@ spec:
trialTemplate:
primaryContainerName: training-container
trialParameters:
- name: learningRate
description: Learning rate for the training model
reference: lr
- name: momentum
description: Momentum for the training model
reference: momentum
# - name: learningRate
# description: Learning rate for the training model
# reference: lr
# - name: momentum
# description: Momentum for the training model
# reference: momentum
- name: weightDecay
description: Weight decay for the training model
reference: weight_decay
Expand All @@ -71,8 +71,8 @@ spec:
- "/opt/pytorch-mnist/mnist.py"
- "--epochs=1"
- "--batch-size=16"
- "--lr=${trialParameters.learningRate}"
- "--momentum=${trialParameters.momentum}"
# - "--lr=${trialParameters.learningRate}"
# - "--momentum=${trialParameters.momentum}"
- "--weight-decay=${trialParameters.weightDecay}"
- "--dropout-rate=${trialParameters.dropoutRate}"
resources:
Expand Down

0 comments on commit 564ec61

Please sign in to comment.