-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bayesian optimization suggestion (#251)
* fix bayse optimization suggestion Signed-off-by: YujiOshima <[email protected]> * add bayseopt-example Signed-off-by: YujiOshima <[email protected]> * reset x_train in burn-in Signed-off-by: YujiOshima <[email protected]> * validate parameters Signed-off-by: YujiOshima <[email protected]>
- Loading branch information
1 parent
72a0fc0
commit 1104524
Showing
6 changed files
with
327 additions
and
140 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
grpcio | ||
duecredit | ||
cloudpickle==0.5.6 | ||
numpy>=1.13.3 | ||
scikit-learn>=0.19.0 | ||
scipy>=0.19.1 | ||
|
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apiVersion: "kubeflow.org/v1alpha1" | ||
kind: StudyJob | ||
metadata: | ||
namespace: kubeflow | ||
labels: | ||
controller-tools.k8s.io: "1.0" | ||
name: bayseopt-example | ||
spec: | ||
studyName: random-example | ||
owner: crd | ||
optimizationtype: maximize | ||
objectivevaluename: Validation-accuracy | ||
optimizationgoal: 0.99 | ||
requestcount: 10 | ||
metricsnames: | ||
- accuracy | ||
parameterconfigs: | ||
- name: --lr | ||
parametertype: double | ||
feasible: | ||
min: "0.01" | ||
max: "0.03" | ||
- name: --num-layers | ||
parametertype: int | ||
feasible: | ||
min: "1" | ||
max: "4" | ||
- name: --optimizer | ||
parametertype: categorical | ||
feasible: | ||
list: | ||
- sgd | ||
- adam | ||
- ftrl | ||
workerSpec: | ||
goTemplate: | ||
rawTemplate: |- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: {{.WorkerID}} | ||
namespace: kubeflow | ||
spec: | ||
template: | ||
spec: | ||
imagePullSecrets: | ||
- name: gitlabregcred | ||
containers: | ||
- name: {{.WorkerID}} | ||
image: katib/mxnet-mnist-example | ||
command: | ||
- "python" | ||
- "/mxnet/example/image-classification/train_mnist.py" | ||
- "--batch-size=32" | ||
{{- with .HyperParameters}} | ||
{{- range .}} | ||
- "{{.Name}}={{.Value}}" | ||
{{- end}} | ||
{{- end}} | ||
restartPolicy: Never | ||
suggestionSpec: | ||
suggestionAlgorithm: "bayesianoptimization" | ||
suggestionParameters: | ||
- | ||
name: "burn_in" | ||
value: "5" | ||
requestNumber: 3 |
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
Oops, something went wrong.