StartExperiment.md 1.29 KB
Newer Older
1
2
3
How to start an experiment
===
## 1.Introduce
4
There are few steps to start an new experiment of NNI, here are the process.
Chi Song's avatar
Chi Song committed
5

6
<img src="./img/experiment_process.jpg" width="50%" height="50%" />
Chi Song's avatar
Chi Song committed
7

8
9
## 2.Details
### 2.1 Check environment
10
11
1. Check if there is an old experiment running 
2. Check if the port of restfurl server is free. 
12
3. Validate the content of config YAML file. 
13
4. Prepare a config file to to record the information of this experiment. 
14
15

### 2.2 Start restful server
16
Start an restful server process to manage NNI experiment, the default port is 8080.
17
18

### 2.3 Check restful server
19
Check whether restful server process is successfully started and could get a response when send message to restful server.
20
21

### 2.4 Set experiment config
22
Call restful server to set experiment config before starting an experiment, experiment config includes the config values in config YAML file.
23
24

### 2.5 Check experiment cofig
Chi Song's avatar
Chi Song committed
25
Check the response content of restful server,  if the status code of response is 200, the config is successfully set.
26

27
28
### 2.6 Start Experiment
Call restful server process to setup an experiment.
29

30
31
32
33
34
### 2.7 Check experiment
1. Check the response of restful server.
2. Handle error information.
3. Print success or error information to screen.
4. Save configuration information to config file of nnictl.