Revision 2574d10d91c0aab496f7750b4569581657d60b57 authored by IWAMOTO Toshihiro on 05 October 2018, 08:12:35 UTC, committed by IWAMOTO Toshihiro on 10 October 2018, 05:31:38 UTC
While CustomResourceDefinition.spec.scope defaults to Namespaced, omitting this generates a validation error. Just supply the default. Signed-off-by: IWAMOTO Toshihiro <iwamoto@valinux.co.jp>
1 parent 6609587
random-example.yaml
apiVersion: "kubeflow.org/v1alpha1"
kind: StudyJob
metadata:
namespace: katib
labels:
controller-tools.k8s.io: "1.0"
name: random-example
spec:
studyName: random-example
owner: crd
optimizationtype: maximize
objectivevaluename: Validation-accuracy
optimizationgoal: 0.99
requestcount: 4
metricsnames:
- accuracy
parameterconfigs:
- name: --lr
parametertype: double
feasible:
min: "0.01"
max: "0.03"
- name: --num-layers
parametertype: int
feasible:
min: "2"
max: "5"
- name: --optimizer
parametertype: categorical
feasible:
list:
- sgd
- adam
- ftrl
workerSpec:
goTemplate:
rawTemplate: |-
apiVersion: batch/v1
kind: Job
metadata:
name: {{.WorkerId}}
namespace: katib
spec:
template:
spec:
containers:
- name: {{.WorkerId}}
image: katib/mxnet-mnist-example
command:
- "python"
- "/mxnet/example/image-classification/train_mnist.py"
- "--batch-size=64"
{{- with .HyperParameters}}
{{- range .}}
- "{{.Name}}={{.Value}}"
{{- end}}
{{- end}}
restartPolicy: Never
suggestionSpec:
suggestionAlgorithm: "random"
requestNumber: 3
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...