"vscode:/vscode.git/clone" did not exist on "34d30a9be7d28bfed6a2748fcfd073253adf632f"
pr_tests.yml 4.43 KB
Newer Older
chicm-ms's avatar
chicm-ms committed
1
2
3
4
5
6

defaultTestCaseConfig:
  launchCommand: nnictl create --config $configFile
  stopCommand: nnictl stop
  experimentStatusCheck: True
  platform: linux darwin win32
chicm-ms's avatar
chicm-ms committed
7
  trainingService: all
chicm-ms's avatar
chicm-ms committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

testCases:

#########################################################################
# naive test
#########################################################################

- name: naive-test
  configFile: test/config/naive_test/local.yml
  launchCommand: python3 nni_test/nnitest/naive_test.py --config $configFile
  experimentStatusCheck: False
  stopCommand:
  platform: linux darwin

#########################################################################
# nni features test
#########################################################################
- name: metrics-float
  configFile: test/config/metrics_test/config.yml
  config:
    maxTrialNum: 1
    trialConcurrency: 1
  validator:
    class: MetricsValidator
    kwargs:
      expected_result_file: expected_metrics.json

chicm-ms's avatar
chicm-ms committed
35
36
37
38
39
40
41
42
43
- name: metrics-dict
  configFile: test/config/metrics_test/config_dict_metrics.yml
  config:
    maxTrialNum: 1
    trialConcurrency: 1
  validator:
    class: MetricsValidator
    kwargs:
      expected_result_file: expected_metrics_dict.json
chicm-ms's avatar
chicm-ms committed
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73

- name: nnicli
  configFile: test/config/examples/sklearn-regression.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
  launchCommand: python3 -c 'import nnicli as nc; nc.start_nni("$configFile")'
  stopCommand: python3 -c 'import nnicli as nc; nc.stop_nni()'
  validator:
    class: NnicliValidator
  platform: linux darwin

- name: multi-thread
  configFile: test/config/multi_thread/config.yml

- name: multi-phase-batch
  configFile: test/config/multi_phase/batch.yml
  config:
    # for batch tuner, maxTrialNum can not exceed length of search space
    maxTrialNum: 2
    trialConcurrency: 2

#########################################################################
# nni assessor test
#########################################################################
- name: assessor-curvefitting
  configFile: test/config/assessors/curvefitting.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
74
75
76
    trial:
      codeDir: ../naive_trial
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
77
78
79
80
81
82

- name: assessor-medianstop
  configFile: test/config/assessors/medianstop.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
83
84
85
    trial:
      codeDir: ../naive_trial
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
86
87
88
89
90
91
92
93
94
95
96
97
98

#########################################################################
# nni tuners test
#########################################################################
- name: tuner-annel
  configFile: test/config/tuners/anneal.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
    useAnnotation: False
    searchSpacePath: ../naive_trial/search_space.json
    trial:
      codeDir: ../naive_trial
99
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
100
101
102
103
104
105
106
107
108
109

- name: tuner-evolution
  configFile: test/config/tuners/evolution.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
    useAnnotation: False
    searchSpacePath: ../naive_trial/search_space.json
    trial:
      codeDir: ../naive_trial
110
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
111
112
113
114
115
116
117
118
119
120

- name: tuner-random
  configFile: test/config/tuners/random.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
    useAnnotation: False
    searchSpacePath: ../naive_trial/search_space.json
    trial:
      codeDir: ../naive_trial
121
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
122
123
124
125
126
127
128
129
130
131

- name: tuner-tpe
  configFile: test/config/tuners/tpe.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
    useAnnotation: False
    searchSpacePath: ../naive_trial/search_space.json
    trial:
      codeDir: ../naive_trial
132
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153

- name: tuner-batch
  configFile: test/config/tuners/batch.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
    useAnnotation: False
    searchSpacePath: ../naive_trial/search_space_choices.json
    trial:
      codeDir: ../naive_trial
      command: python3 trial_choices.py

- name: tuner-gp
  configFile: test/config/tuners/gp.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
    useAnnotation: False
    searchSpacePath: ../naive_trial/search_space.json
    trial:
      codeDir: ../naive_trial
154
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
155
156
157
158
159
160
161
162
163
164
165

- name: tuner-grid
  configFile: test/config/tuners/gridsearch.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
    useAnnotation: False
    searchSpacePath: ../naive_trial/search_space_choices.json
    trial:
      codeDir: ../naive_trial
      command: python3 trial_choices.py