Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
modify example config path to relative path and increase maxTrialNum (#…
Browse files Browse the repository at this point in the history
…94)

* modify example config path to relative path and increase maxTrialNum

* add document
  • Loading branch information
Crysple authored and QuanluZhang committed Sep 26, 2018
1 parent ff390b4 commit cc5218e
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 21 deletions.
7 changes: 7 additions & 0 deletions docs/GetStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
source install.sh


* __Install NNI for all users__

sudo pip3 install -v --user git+https://github.com/Microsoft/nni.git@v0.1

* Note: NNI will be installed to `/usr/share/nni` for all users and to `~/.local/nni` for current user. Respectively, the examples will be copied to `/usr/share/nni/examples` or `~/.local/nni/examples`.
* The following tutorial assumes that NNI is installed for current user.

## **Quick start: run a customized experiment**
An experiment is to run multiple trial jobs, each trial job tries a configuration which includes a specific neural architecture (or model) and hyper-parameter values. To run an experiment through NNI, you should:

Expand Down
4 changes: 2 additions & 2 deletions examples/trials/auto-gbdt/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ maxExecDuration: 10h
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/auto-gbdt/search_space.json
searchSpacePath: search_space.json
#choice: true, false
useAnnotation: false
tuner:
Expand All @@ -16,5 +16,5 @@ tuner:
optimize_mode: minimize
trial:
command: python3 main.py
codeDir: ~/nni/examples/trials/auto-gbdt/
codeDir: .
gpuNum: 0
6 changes: 3 additions & 3 deletions examples/trials/ga_squad/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ authorName: default
experimentName: example_ga_squad
trialConcurrency: 1
maxExecDuration: 1h
maxTrialNum: 1
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
#choice: true, false
useAnnotation: false
tuner:
codeDir: ~/nni/examples/tuners/ga_customer_tuner
codeDir: ../tuners/ga_customer_tuner
classFileName: customer_tuner.py
className: CustomerTuner
classArgs:
optimize_mode: maximize
trial:
command: python3 trial.py
codeDir: ~/nni/examples/trials/ga_squad
codeDir: .
gpuNum: 0
4 changes: 2 additions & 2 deletions examples/trials/mnist-annotation/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ authorName: default
experimentName: example_mnist
trialConcurrency: 1
maxExecDuration: 1h
maxTrialNum: 1
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
#choice: true, false
Expand All @@ -15,5 +15,5 @@ tuner:
optimize_mode: maximize
trial:
command: python3 mnist.py
codeDir: ~/nni/examples/trials/mnist-annotation
codeDir: .
gpuNum: 0
6 changes: 3 additions & 3 deletions examples/trials/mnist-batch-tune-keras/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ authorName: default
experimentName: example_mnist-keras
trialConcurrency: 1
maxExecDuration: 1h
maxTrialNum: 6
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/mnist-batch-tune-keras/search_space.json
searchSpacePath: search_space.json
#choice: true, false
useAnnotation: false
tuner:
Expand All @@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize
trial:
command: python3 mnist-keras.py
codeDir: ~/nni/examples/trials/mnist-batch-tune-keras
codeDir: .
gpuNum: 0
6 changes: 3 additions & 3 deletions examples/trials/mnist-keras/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ authorName: default
experimentName: example_mnist-keras
trialConcurrency: 1
maxExecDuration: 1h
maxTrialNum: 1
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/mnist-keras/search_space.json
searchSpacePath: search_space.json
#choice: true, false
useAnnotation: false
tuner:
Expand All @@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize
trial:
command: python3 mnist-keras.py
codeDir: ~/nni/examples/trials/mnist-keras
codeDir: .
gpuNum: 0
4 changes: 2 additions & 2 deletions examples/trials/mnist-smartparam/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ authorName: default
experimentName: example_mnist-smartparam
trialConcurrency: 1
maxExecDuration: 1h
maxTrialNum: 1
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
#choice: true, false
Expand All @@ -15,5 +15,5 @@ tuner:
optimize_mode: maximize
trial:
command: python3 mnist.py
codeDir: ~/nni/examples/trials/mnist-smartparam
codeDir: .
gpuNum: 0
6 changes: 3 additions & 3 deletions examples/trials/mnist/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ authorName: default
experimentName: example_mnist
trialConcurrency: 1
maxExecDuration: 1h
maxTrialNum: 100
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/mnist/search_space.json
searchSpacePath: search_space.json
#choice: true, false
useAnnotation: false
tuner:
Expand All @@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize
trial:
command: python3 mnist.py
codeDir: ~/nni/examples/trials/mnist
codeDir: .
gpuNum: 0
6 changes: 3 additions & 3 deletions examples/trials/pytorch_cifar10/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ authorName: default
experimentName: example_pytorch_cifar10
trialConcurrency: 1
maxExecDuration: 100h
maxTrialNum: 1
maxTrialNum: 10
#choice: local, remote
trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/pytorch_cifar10/search_space.json
searchSpacePath: search_space.json
#choice: true, false
useAnnotation: false
tuner:
Expand All @@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize
trial:
command: python3 main.py
codeDir: ~/nni/examples/trials/pytorch_cifar10
codeDir: .
gpuNum: 1

0 comments on commit cc5218e

Please sign in to comment.