pr_tests.yml 4.11 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

- 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
63
64
65
    trial:
      codeDir: ../naive_trial
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
66
67
68
69
70
71

- name: assessor-medianstop
  configFile: test/config/assessors/medianstop.yml
  config:
    maxTrialNum: 2
    trialConcurrency: 2
72
73
74
    trial:
      codeDir: ../naive_trial
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
75
76
77
78
79
80
81
82
83
84
85
86
87

#########################################################################
# 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
88
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
89
90
91
92
93
94
95
96
97
98

- 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
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-random
  configFile: test/config/tuners/random.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-tpe
  configFile: test/config/tuners/tpe.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
132
133
134
135
136
137
138
139
140
141
142

- 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
143
      command: python3 naive_trial.py
chicm-ms's avatar
chicm-ms committed
144
145
146
147
148
149
150
151
152
153
154

- 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