Commit ad8b0f0c authored by QuanluZhang's avatar QuanluZhang Committed by fishyds
Browse files

update doc for smac tuner (#140)

parent 2f7d2287
...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json ...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution #choice: TPE, Random, Anneal, Evolution,
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE builtinTunerName: TPE
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
...@@ -17,4 +18,4 @@ tuner: ...@@ -17,4 +18,4 @@ tuner:
trial: trial:
command: python3 main.py command: python3 main.py
codeDir: . codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -8,7 +8,8 @@ trainingServicePlatform: local ...@@ -8,7 +8,8 @@ trainingServicePlatform: local
#choice: true, false #choice: true, false
useAnnotation: true useAnnotation: true
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution #choice: TPE, Random, Anneal, Evolution,
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE builtinTunerName: TPE
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
...@@ -16,4 +17,4 @@ tuner: ...@@ -16,4 +17,4 @@ tuner:
trial: trial:
command: python3 mnist.py command: python3 mnist.py
codeDir: . codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -10,6 +10,7 @@ searchSpacePath: search_space.json ...@@ -10,6 +10,7 @@ searchSpacePath: search_space.json
useAnnotation: false useAnnotation: false
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution, BatchTuner #choice: TPE, Random, Anneal, Evolution, BatchTuner
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: BatchTuner builtinTunerName: BatchTuner
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
......
...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json ...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution #choice: TPE, Random, Anneal, Evolution,
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE builtinTunerName: TPE
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
...@@ -17,4 +18,4 @@ tuner: ...@@ -17,4 +18,4 @@ tuner:
trial: trial:
command: python3 mnist-keras.py command: python3 mnist-keras.py
codeDir: . codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -8,7 +8,8 @@ trainingServicePlatform: local ...@@ -8,7 +8,8 @@ trainingServicePlatform: local
#choice: true, false #choice: true, false
useAnnotation: true useAnnotation: true
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution #choice: TPE, Random, Anneal, Evolution,
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE builtinTunerName: TPE
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
...@@ -16,4 +17,4 @@ tuner: ...@@ -16,4 +17,4 @@ tuner:
trial: trial:
command: python3 mnist.py command: python3 mnist.py
codeDir: . codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json ...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution #choice: TPE, Random, Anneal, Evolution,
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE builtinTunerName: TPE
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
...@@ -17,4 +18,4 @@ tuner: ...@@ -17,4 +18,4 @@ tuner:
trial: trial:
command: python3 mnist.py command: python3 mnist.py
codeDir: . codeDir: .
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -9,7 +9,8 @@ searchSpacePath: ~/nni/examples/trials/mnist/search_space.json ...@@ -9,7 +9,8 @@ searchSpacePath: ~/nni/examples/trials/mnist/search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution #choice: TPE, Random, Anneal, Evolution,
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE builtinTunerName: TPE
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
...@@ -23,4 +24,4 @@ assessor: ...@@ -23,4 +24,4 @@ assessor:
trial: trial:
command: python3 mnist.py command: python3 mnist.py
codeDir: ~/nni/examples/trials/mnist codeDir: ~/nni/examples/trials/mnist
gpuNum: 0 gpuNum: 0
\ No newline at end of file
...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json ...@@ -9,7 +9,8 @@ searchSpacePath: search_space.json
#choice: true, false #choice: true, false
useAnnotation: false useAnnotation: false
tuner: tuner:
#choice: TPE, Random, Anneal, Evolution #choice: TPE, Random, Anneal, Evolution,
#SMAC (SMAC should be installed through nnictl)
builtinTunerName: TPE builtinTunerName: TPE
classArgs: classArgs:
#choice: maximize, minimize #choice: maximize, minimize
......
# How to use Tuner that NNI supports? # How to use Tuner that NNI supports?
For now, NNI could support tuner algorithms as following: For now, NNI has supported the following tuner algorithms. Note that NNI installation only installs a subset of those algorithms, other algorithms should be installed through `nnictl package install` before you use them. For example, for SMAC the installation command is `nnictl package install --name=SMAC`.
- TPE - TPE
- Random Search - Random Search
- Anneal - Anneal
- Naive Evolution - Naive Evolution
- SMAC - SMAC (to install through `nnictl`)
- ENAS (ongoing) - ENAS (ongoing)
- Batch (ongoing) - Batch (ongoing)
...@@ -75,4 +75,4 @@ There are two filed you need to set: ...@@ -75,4 +75,4 @@ There are two filed you need to set:
[2]: http://www.jmlr.org/papers/volume13/bergstra12a/bergstra12a.pdf [2]: http://www.jmlr.org/papers/volume13/bergstra12a/bergstra12a.pdf
[3]: https://arxiv.org/pdf/1703.01041.pdf [3]: https://arxiv.org/pdf/1703.01041.pdf
[4]: https://www.cs.ubc.ca/~hutter/papers/10-TR-SMAC.pdf [4]: https://www.cs.ubc.ca/~hutter/papers/10-TR-SMAC.pdf
[5]: https://github.com/automl/SMAC3 [5]: https://github.com/automl/SMAC3
\ No newline at end of file
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