-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* update to Kind 1.27 * update katib test * update katib test * increase test pipeline timeout from 60 to 120 seconds --------- Signed-off-by: juliusvonkohout <45896133+juliusvonkohout@users.noreply.github.com>
- Loading branch information
1 parent
0fe0065
commit a925b29
Showing
5 changed files
with
43 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,56 @@ | ||
--- | ||
--- | ||
apiVersion: kubeflow.org/v1beta1 | ||
kind: Experiment | ||
metadata: | ||
name: grid-example | ||
namespace: kubeflow-user | ||
name: grid | ||
spec: | ||
objective: | ||
type: minimize | ||
goal: 0.1 | ||
objectiveMetricName: loss | ||
algorithm: | ||
algorithmName: grid | ||
parallelTrialCount: 2 | ||
maxTrialCount: 2 | ||
maxFailedTrialCount: 2 | ||
parameters: | ||
- name: lr | ||
parameterType: double | ||
feasibleSpace: | ||
max: '0.01' | ||
min: '0.001' | ||
step: '0.001' | ||
- name: num-layers | ||
parameterType: int | ||
feasibleSpace: | ||
max: '3' | ||
min: '2' | ||
- name: optimizer | ||
parameterType: categorical | ||
min: "0.01" | ||
step: "0.005" | ||
max: "0.05" | ||
- name: momentum | ||
parameterType: double | ||
feasibleSpace: | ||
list: | ||
- adam | ||
objective: | ||
type: maximize | ||
goal: 0.80 | ||
objectiveMetricName: Validation-accuracy | ||
additionalMetricNames: | ||
- Train-accuracy | ||
metricStrategies: | ||
- name: Validation-accuracy | ||
value: max | ||
- name: Train-accuracy | ||
value: max | ||
algorithm: | ||
algorithmName: grid | ||
min: "0.5" | ||
step: "0.1" | ||
max: "0.9" | ||
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 | ||
trialSpec: | ||
apiVersion: batch/v1 | ||
kind: Job | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
sidecar.istio.io/inject: 'false' | ||
spec: | ||
containers: | ||
- command: | ||
- python3 | ||
- /opt/mxnet-mnist/mnist.py | ||
- '--batch-size=64' | ||
- '--lr=${trialParameters.learningRate}' | ||
- '--num-layers=${trialParameters.numberLayers}' | ||
- '--optimizer=${trialParameters.optimizer}' | ||
image: docker.io/kubeflowkatib/mxnet-mnist:latest | ||
name: training-container | ||
- name: training-container | ||
image: docker.io/kubeflowkatib/pytorch-mnist-cpu:latest | ||
command: | ||
- "python3" | ||
- "/opt/pytorch-mnist/mnist.py" | ||
- "--epochs=1" | ||
- "--batch-size=16" | ||
- "--lr=${trialParameters.learningRate}" | ||
- "--momentum=${trialParameters.momentum}" | ||
restartPolicy: Never | ||
trialParameters: | ||
- name: learningRate | ||
description: Learning rate for the training model | ||
reference: lr | ||
- name: numberLayers | ||
description: Number of training model layers | ||
reference: num-layers | ||
- name: optimizer | ||
description: Training model optimizer (sdg, adam or ftrl) | ||
reference: optimizer | ||
primaryContainerName: training-container | ||
successCondition: status.conditions.#(type=="Complete")#|#(status=="True")# | ||
failureCondition: status.conditions.#(type=="Failed")#|#(status=="True")# | ||
parallelTrialCount: 1 | ||
maxTrialCount: 1 | ||
maxFailedTrialCount: 1 | ||
metricsCollectorSpec: | ||
collector: | ||
kind: StdOut | ||
resumePolicy: LongRunning |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters