Skip to content

Commit

Permalink
Use camelCase consistently in study job spec
Browse files Browse the repository at this point in the history
This makes study job spec use camelCase consistently. Examples are updated correspondingly.
  • Loading branch information
xyhuang committed Feb 10, 2019
1 parent 0ea34b1 commit 20ea732
Show file tree
Hide file tree
Showing 11 changed files with 96 additions and 96 deletions.
18 changes: 9 additions & 9 deletions examples/bayseopt-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ metadata:
spec:
studyName: random-example
owner: crd
optimizationtype: maximize
objectivevaluename: Validation-accuracy
optimizationgoal: 0.99
requestcount: 10
metricsnames:
optimizationType: maximize
objectiveValueName: Validation-accuracy
optimizationGoal: 0.99
requestCount: 10
metricsNames:
- accuracy
parameterconfigs:
parameterConfigs:
- name: --lr
parametertype: double
parameterType: double
feasible:
min: "0.01"
max: "0.03"
- name: --num-layers
parametertype: int
parameterType: int
feasible:
min: "1"
max: "4"
- name: --optimizer
parametertype: categorical
parameterType: categorical
feasible:
list:
- sgd
Expand Down
16 changes: 8 additions & 8 deletions examples/gpu-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ metadata:
spec:
studyName: gpu-example
owner: crd
optimizationtype: maximize
objectivevaluename: Validation-accuracy
optimizationgoal: 0.99
metricsnames:
optimizationType: maximize
objectiveValueName: Validation-accuracy
optimizationGoal: 0.99
metricsNames:
- accuracy
parameterconfigs:
parameterConfigs:
- name: --lr
parametertype: double
parameterType: double
feasible:
min: "0.01"
max: "0.03"
- name: --num-layers
parametertype: int
parameterType: int
feasible:
min: "2"
max: "3"
- name: --optimizer
parametertype: categorical
parameterType: categorical
feasible:
list:
- sgd
Expand Down
16 changes: 8 additions & 8 deletions examples/grid-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ metadata:
spec:
studyName: grid-example
owner: crd
optimizationtype: maximize
objectivevaluename: Validation-accuracy
optimizationgoal: 0.99
metricsnames:
optimizationType: maximize
objectiveValueName: Validation-accuracy
optimizationGoal: 0.99
metricsNames:
- accuracy
parameterconfigs:
parameterConfigs:
- name: --lr
parametertype: double
parameterType: double
feasible:
min: "0.01"
max: "0.03"
- name: --num-layers
parametertype: int
parameterType: int
feasible:
min: "2"
max: "5"
- name: --optimizer
parametertype: categorical
parameterType: categorical
feasible:
list:
- sgd
Expand Down
16 changes: 8 additions & 8 deletions examples/hypb-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ metadata:
spec:
studyName: hypb-example
owner: crd
optimizationtype: maximize
objectivevaluename: Validation-accuracy
metricsnames:
optimizationType: maximize
objectiveValueName: Validation-accuracy
metricsNames:
- accuracy
parameterconfigs:
parameterConfigs:
- name: --lr
parametertype: double
parameterType: double
feasible:
min: "0.01"
max: "0.03"
- name: --num-layers
parametertype: int
parameterType: int
feasible:
min: "2"
max: "5"
- name: --optimizer
parametertype: categorical
parameterType: categorical
feasible:
list:
- sgd
- adam
- ftrl
- name: --num-epochs
parametertype: int
parameterType: int
feasible:
min: "20"
max: "20"
Expand Down
24 changes: 12 additions & 12 deletions examples/nasjob-example-RL.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ metadata:
spec:
studyName: nas-rl-example
owner: crd
optimizationtype: maximize
objectivevaluename: Validation-Accuracy
optimizationgoal: 0.99
requestcount: 3
metricsnames:
optimizationType: maximize
objectiveValueName: Validation-Accuracy
optimizationGoal: 0.99
requestCount: 3
metricsNames:
- accuracy
nasConfig:
graphConfig:
Expand All @@ -25,16 +25,16 @@ spec:
- 10
operations:
- operationType: convolution
parameterconfigs:
parameterConfigs:
- name: filter_size
parametertype: categorical
parameterType: categorical
feasible:
list:
- "3"
- "5"
- "7"
- name: num_filter
parametertype: categorical
parameterType: categorical
feasible:
list:
- "32"
Expand All @@ -43,21 +43,21 @@ spec:
- "96"
- "128"
- name: stride
parametertype: categorical
parameterType: categorical
feasible:
list:
- "1"
- "2"
- operationType: reduction
parameterconfigs:
parameterConfigs:
- name: reduction_type
parametertype: categorical
parameterType: categorical
feasible:
list:
- max_pooling
- avg_pooling
- name: pool_size
parametertype: int
parameterType: int
feasible:
min: "2"
max: "3"
Expand Down
16 changes: 8 additions & 8 deletions examples/pytorchjob-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ metadata:
spec:
studyName: pytorchjob-example
owner: crd
optimizationtype: maximize
objectivevaluename: accuracy
optimizationgoal: 0.99
requestcount: 4
metricsnames:
optimizationType: maximize
objectiveValueName: accuracy
optimizationGoal: 0.99
requestCount: 4
metricsNames:
- accuracy
parameterconfigs:
parameterConfigs:
- name: --lr
parametertype: double
parameterType: double
feasible:
min: "0.01"
max: "0.05"
- name: --momentum
parametertype: double
parameterType: double
feasible:
min: "0.5"
max: "0.9"
Expand Down
18 changes: 9 additions & 9 deletions examples/random-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ metadata:
spec:
studyName: random-example
owner: crd
optimizationtype: maximize
objectivevaluename: Validation-accuracy
optimizationgoal: 0.99
requestcount: 4
metricsnames:
optimizationType: maximize
objectiveValueName: Validation-accuracy
optimizationGoal: 0.99
requestCount: 4
metricsNames:
- accuracy
parameterconfigs:
parameterConfigs:
- name: --lr
parametertype: double
parameterType: double
feasible:
min: "0.01"
max: "0.03"
- name: --num-layers
parametertype: int
parameterType: int
feasible:
min: "2"
max: "5"
- name: --optimizer
parametertype: categorical
parameterType: categorical
feasible:
list:
- sgd
Expand Down
14 changes: 7 additions & 7 deletions examples/tf-event_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ metadata:
spec:
studyName: random-example-long-test
owner: crd
optimizationtype: maximize
objectivevaluename: test/accuracy
optimizationgoal: 0.99
metricsnames:
optimizationType: maximize
objectiveValueName: test/accuracy
optimizationGoal: 0.99
metricsNames:
- train/accuracy
- train/cross_entropy
- test/accuracy
- test/cross_entropy
parameterconfigs:
parameterConfigs:
- name: --learning_rate
parametertype: double
parameterType: double
feasible:
min: "0.001"
max: "0.01"
- name: --dropout
parametertype: double
parameterType: double
feasible:
min: "0.7"
max: "0.9"
Expand Down
16 changes: 8 additions & 8 deletions examples/tfjob-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ metadata:
spec:
studyName: tfjob-example
owner: crd
optimizationtype: maximize
objectivevaluename: accuracy_1
optimizationgoal: 0.99
requestcount: 4
metricsnames:
optimizationType: maximize
objectiveValueName: accuracy_1
optimizationGoal: 0.99
requestCount: 4
metricsNames:
- accuracy_1
parameterconfigs:
parameterConfigs:
- name: --learning_rate
parametertype: double
parameterType: double
feasible:
min: "0.01"
max: "0.05"
- name: --batch_size
parametertype: int
parameterType: int
feasible:
min: "100"
max: "200"
Expand Down
14 changes: 7 additions & 7 deletions examples/xgboost-bayesian-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ metadata:
spec:
studyName: xgboost-example
owner: crd
optimizationtype: minimize
objectivevaluename: mean_absolute_error
optimizationgoal: 10000
requestcount: 10
optimizationType: minimize
objectiveValueName: mean_absolute_error
optimizationGoal: 10000
requestCount: 10

parameterconfigs:
parameterConfigs:
- name: --learning-rate
parametertype: double
parameterType: double
feasible:
min: "0.05"
max: "0.15"
- name: --n-estimators
parametertype: int
parameterType: int
feasible:
min: "10000"
max: "30000"
Expand Down
Loading

0 comments on commit 20ea732

Please sign in to comment.