StartExperiment.md 1.29 KB
Newer Older
1
2
3
How to start an experiment
===
## 1.Introduce
Darío Hereñú's avatar
Darío Hereñú committed
4
There are few steps to start an new experiment of nni, here are the process.
5
6
7
<img src="./img/experiment_process.jpg" width="50%" height="50%" />
## 2.Details
### 2.1 Check environment
8
9
10
11
1. Check if there is an old experiment running 
2. Check if the port of restfurl server is free. 
3. Validate the content of config yaml file. 
4. Prepare a config file to to record the information of this experiment. 
12
13

### 2.2 Start restful server
14
Start an restful server process to manage nni experiment, the default port is 8080.
15
16

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

### 2.4 Set experiment config
20
Call restful server to set experiment config before starting an experiment, experiment config includes the config values in config yaml file.
21
22

### 2.5 Check experiment cofig
23
Check the response content of restful srver,  if the status code of response is 200, the config is successfully set.
24

25
26
### 2.6 Start Experiment
Call restful server process to setup an experiment.
27

28
29
30
31
32
### 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.