Commit cc5218e5 authored by Zejun Lin's avatar Zejun Lin Committed by QuanluZhang
Browse files

modify example config path to relative path and increase maxTrialNum (#94)

* modify example config path to relative path and increase maxTrialNum

* add document
parent ff390b4d
...@@ -25,6 +25,13 @@ ...@@ -25,6 +25,13 @@
source install.sh 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** ## **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: 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:
......
...@@ -5,7 +5,7 @@ maxExecDuration: 10h ...@@ -5,7 +5,7 @@ maxExecDuration: 10h
maxTrialNum: 10 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/auto-gbdt/search_space.json searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
...@@ -16,5 +16,5 @@ tuner: ...@@ -16,5 +16,5 @@ tuner:
optimize_mode: minimize optimize_mode: minimize
trial: trial:
command: python3 main.py command: python3 main.py
codeDir: ~/nni/examples/trials/auto-gbdt/ codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -2,18 +2,18 @@ authorName: default ...@@ -2,18 +2,18 @@ authorName: default
experimentName: example_ga_squad experimentName: example_ga_squad
trialConcurrency: 1 trialConcurrency: 1
maxExecDuration: 1h maxExecDuration: 1h
maxTrialNum: 1 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
codeDir: ~/nni/examples/tuners/ga_customer_tuner codeDir: ../tuners/ga_customer_tuner
classFileName: customer_tuner.py classFileName: customer_tuner.py
className: CustomerTuner className: CustomerTuner
classArgs: classArgs:
optimize_mode: maximize optimize_mode: maximize
trial: trial:
command: python3 trial.py command: python3 trial.py
codeDir: ~/nni/examples/trials/ga_squad codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -2,7 +2,7 @@ authorName: default ...@@ -2,7 +2,7 @@ authorName: default
experimentName: example_mnist experimentName: example_mnist
trialConcurrency: 1 trialConcurrency: 1
maxExecDuration: 1h maxExecDuration: 1h
maxTrialNum: 1 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
#choice: true, false #choice: true, false
...@@ -15,5 +15,5 @@ tuner: ...@@ -15,5 +15,5 @@ tuner:
optimize_mode: maximize optimize_mode: maximize
trial: trial:
command: python3 mnist.py command: python3 mnist.py
codeDir: ~/nni/examples/trials/mnist-annotation codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -2,10 +2,10 @@ authorName: default ...@@ -2,10 +2,10 @@ authorName: default
experimentName: example_mnist-keras experimentName: example_mnist-keras
trialConcurrency: 1 trialConcurrency: 1
maxExecDuration: 1h maxExecDuration: 1h
maxTrialNum: 6 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/mnist-batch-tune-keras/search_space.json searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
...@@ -16,5 +16,5 @@ tuner: ...@@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize optimize_mode: maximize
trial: trial:
command: python3 mnist-keras.py command: python3 mnist-keras.py
codeDir: ~/nni/examples/trials/mnist-batch-tune-keras codeDir: .
gpuNum: 0 gpuNum: 0
...@@ -2,10 +2,10 @@ authorName: default ...@@ -2,10 +2,10 @@ authorName: default
experimentName: example_mnist-keras experimentName: example_mnist-keras
trialConcurrency: 1 trialConcurrency: 1
maxExecDuration: 1h maxExecDuration: 1h
maxTrialNum: 1 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/mnist-keras/search_space.json searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
...@@ -16,5 +16,5 @@ tuner: ...@@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize optimize_mode: maximize
trial: trial:
command: python3 mnist-keras.py command: python3 mnist-keras.py
codeDir: ~/nni/examples/trials/mnist-keras codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -2,7 +2,7 @@ authorName: default ...@@ -2,7 +2,7 @@ authorName: default
experimentName: example_mnist-smartparam experimentName: example_mnist-smartparam
trialConcurrency: 1 trialConcurrency: 1
maxExecDuration: 1h maxExecDuration: 1h
maxTrialNum: 1 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
#choice: true, false #choice: true, false
...@@ -15,5 +15,5 @@ tuner: ...@@ -15,5 +15,5 @@ tuner:
optimize_mode: maximize optimize_mode: maximize
trial: trial:
command: python3 mnist.py command: python3 mnist.py
codeDir: ~/nni/examples/trials/mnist-smartparam codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -2,10 +2,10 @@ authorName: default ...@@ -2,10 +2,10 @@ authorName: default
experimentName: example_mnist experimentName: example_mnist
trialConcurrency: 1 trialConcurrency: 1
maxExecDuration: 1h maxExecDuration: 1h
maxTrialNum: 100 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/mnist/search_space.json searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
...@@ -16,5 +16,5 @@ tuner: ...@@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize optimize_mode: maximize
trial: trial:
command: python3 mnist.py command: python3 mnist.py
codeDir: ~/nni/examples/trials/mnist codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -2,10 +2,10 @@ authorName: default ...@@ -2,10 +2,10 @@ authorName: default
experimentName: example_pytorch_cifar10 experimentName: example_pytorch_cifar10
trialConcurrency: 1 trialConcurrency: 1
maxExecDuration: 100h maxExecDuration: 100h
maxTrialNum: 1 maxTrialNum: 10
#choice: local, remote #choice: local, remote
trainingServicePlatform: local trainingServicePlatform: local
searchSpacePath: ~/nni/examples/trials/pytorch_cifar10/search_space.json searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
...@@ -16,5 +16,5 @@ tuner: ...@@ -16,5 +16,5 @@ tuner:
optimize_mode: maximize optimize_mode: maximize
trial: trial:
command: python3 main.py command: python3 main.py
codeDir: ~/nni/examples/trials/pytorch_cifar10 codeDir: .
gpuNum: 1 gpuNum: 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment