mg-pso-gui 0.2.38__py3-none-any.whl → 0.2.40__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mg-pso-gui
3
- Version: 0.2.38
3
+ Version: 0.2.40
4
4
  Summary: GUI for MG-PSO
5
5
  Author: Robert Cordingly
6
6
  Author-email: <rcording@uw.ed>
@@ -29,9 +29,9 @@ mgpsogui/gui/VisualizeTab/SideBar.py,sha256=wPjzA8ZZsCTxBKN0_6-_ABtU5BeHqytNAWfK
29
29
  mgpsogui/gui/VisualizeTab/VisualizeTab.py,sha256=xeZS1J4RexoFgsKeJDdWi81Hy8xicROGTdawwcGk2O4,6724
30
30
  mgpsogui/gui/VisualizeTab/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
31
  mgpsogui/gui/defaults/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
- mgpsogui/gui/defaults/optimization.json,sha256=hzLYNshJvbtC-fEpND-dG8mkzLO4OyIoMYAU7cKkC1g,4791
33
- mgpsogui/gui/defaults/sampling.json,sha256=TzeUJ5XouwcIW602sm857hYJ-IkNVyIr3nSmp9IglqM,2821
34
- mgpsogui/gui/defaults/sensitivity.json,sha256=EYzsoxiRXcxSqm4Wp2OY0mXKWoS5hA7tyVzk4QXZy5A,432
32
+ mgpsogui/gui/defaults/optimization.json,sha256=bd_XxTKtKN_ErZoxtZmhltWID-sDJAdxzsqt9qBSsh8,3629
33
+ mgpsogui/gui/defaults/sampling.json,sha256=0BZVXI_BiujDjR6VV1L5kSamRdSoDbBuTi1zRa6qtzM,2044
34
+ mgpsogui/gui/defaults/sensitivity.json,sha256=H3_4NKP6YsUGF73OjKyFNDwKfP_LmfykccDQPFLLvd8,396
35
35
  mgpsogui/gui/images/collapse.png,sha256=yicb16LaY7Nl5q9V8HHlht-Fbg5xU-l4_LJ_Arfmu1c,2989
36
36
  mgpsogui/gui/images/down.png,sha256=pspJkvUitD648C_2y8JLLD4Eagpk4MDEKQJGOO_yIaY,2654
37
37
  mgpsogui/gui/images/expand.png,sha256=YQyxXipCiNiZpTok5Y4juNU5davxoK7MTlRQI4Id27w,2922
@@ -44,7 +44,7 @@ mgpsogui/gui/images/test.png,sha256=MUnVpRK-isxhEHzx4Q6Yh0M6FRZD1qvgCHH2XmiSBbk,
44
44
  mgpsogui/gui/images/trash.png,sha256=j8cf0kWbJd-4Jp20lUVV1o1NSeQ4v1Ej4gfcIA3DVRQ,2958
45
45
  mgpsogui/gui/images/up.png,sha256=AQvFWCUqSQNaQ1E6LKZ9zNfSvW6t4mgy8uswdg9T2Hg,2457
46
46
  mgpsogui/util/GraphGenerator.py,sha256=dKzDPMK-0S6j1yIp5xoQIgN9GTKMhGpboAXjofCpmIk,31973
47
- mgpsogui/util/PSORunner.py,sha256=J1THeD23eB4U65Nvd2VNCM8LXtwFL9S2UuoD-HApAnU,20824
47
+ mgpsogui/util/PSORunner.py,sha256=Wcp9ggaPa_X_EvxOePNUfKkMEPL9R_Oy8mH2hxZNGzY,22008
48
48
  mgpsogui/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  mgpsogui/util/debug.py,sha256=Swzny9_1S-CCONWGssj9iDoSpbwu5Vr4f95g_9L8bec,19759
50
50
  mgpsogui/util/helpers.py,sha256=Ht2rge_4pGO7halz6KoLsL2eukB0k2tlkx68lBBmBA8,2669
@@ -69,8 +69,8 @@ mgpsogui/util/recosu/utils/trace_writer.py,sha256=V9BJlOjCbNYGoXGEk3CF5wjifBxvar
69
69
  mgpsogui/util/recosu/utils/utils.py,sha256=QB8vftq3142ekG0ORjz0ZBHU5YknXbR0oTsrxrPAsF0,3951
70
70
  mgpsogui/util/recosu/utils/plot/__init__.py,sha256=h1KjM7_tNDv351pcwt8A6Ibb1jhwWyx5Gbu-zj-sI3Q,71
71
71
  mgpsogui/util/recosu/utils/plot/cost_steps.py,sha256=1Ce11AJyweWkmvjXPxEygzS-h8yVLmQEDLS53yjPLqQ,3779
72
- mg_pso_gui-0.2.38.dist-info/METADATA,sha256=b4L-Ww2fw8PYKWn5y2pnr7uTBboGQhWpg74mI-ox0zA,9455
73
- mg_pso_gui-0.2.38.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
74
- mg_pso_gui-0.2.38.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
- mg_pso_gui-0.2.38.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
- mg_pso_gui-0.2.38.dist-info/RECORD,,
72
+ mg_pso_gui-0.2.40.dist-info/METADATA,sha256=tP89pbCoxv6MjsUNr7oCPQBE38miJT1Z_E5oY9EYmJg,9455
73
+ mg_pso_gui-0.2.40.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
74
+ mg_pso_gui-0.2.40.dist-info/entry_points.txt,sha256=jg82VOFjR1XDGrchs1wJSCqKYE4Ozv12aBcCSp--koA,117
75
+ mg_pso_gui-0.2.40.dist-info/top_level.txt,sha256=y7JuS9xJN5YdxUsQ3PSVjN8MzQAnR146bP3ZN3PYWdE,9
76
+ mg_pso_gui-0.2.40.dist-info/RECORD,,
@@ -1,183 +1,176 @@
1
1
  {
2
- "model_parameters": [
3
- {
4
- "name": "startTime",
5
- "value": "2002-01-01",
6
- "type": "date",
7
- "destination": "param"
8
-
9
- },
10
- {
11
- "name": "endTime",
12
- "value": "2006-12-31",
13
- "type": "date",
14
- "destination": "param"
15
- },
16
- {
17
- "name": "dataStartTime",
18
- "value": "2002-01-01",
19
- "type": "date",
20
- "destination": "param"
21
- },
22
- {
23
- "name": "dataEndTime",
24
- "value": "2006-12-31",
25
- "type": "date",
26
- "destination": "param"
27
- },
28
- {
29
- "name": "cal_startTime",
30
- "value": "2003-01-01",
31
- "type": "date",
32
- "destination": "param"
33
- },
34
- {
35
- "name": "cal_endTime",
36
- "value": "2006-12-31",
37
- "type": "date",
38
- "destination": "param"
39
- },
40
- {
41
- "name": "parallelismThreads",
42
- "value": "2",
43
- "type": "integer",
44
- "destination": "param"
45
- },
46
- {
47
- "name": "flagLoadState",
48
- "value": "True",
49
- "type": "boolean",
50
- "destination": "param"
51
- },
52
- {
53
- "name": "payload",
54
- "value": "False",
55
- "type": "boolean",
56
- "destination": "param"
57
- },
58
- {
59
- "name": "project",
60
- "value": "SFIR3",
61
- "type": "string",
62
- "destination": "param"
63
- }
64
- ],
65
- "hyperparameters": [
66
- {
67
- "name": "min_rounds",
68
- "value": "1",
69
- "type": "integer",
70
- "destination": "calibration_parameters"
71
- },
72
- {
73
- "name": "max_rounds",
74
- "value": "2",
75
- "type": "integer",
76
- "destination": "calibration_parameters"
77
- },
78
- {
79
- "name": "n_particles",
80
- "value": "10",
81
- "type": "integer",
82
- "destination": "calibration_parameters"
83
- },
84
- {
85
- "name": "iters",
86
- "value": "20",
87
- "type": "integer",
88
- "destination": "calibration_parameters"
89
- },
90
- {
91
- "name": "n_threads",
92
- "value": "10",
93
- "type": "integer",
94
- "destination": "calibration_parameters"
95
- },
96
- {
97
- "name": "ftol",
98
- "value": "NULL",
99
- "type": "float",
100
- "destination": "calibration_parameters"
101
- },
102
- {
103
- "name": "options_c1",
104
- "value": "2",
105
- "type": "float",
106
- "destination": "calibration_parameters"
107
- },
108
- {
109
- "name": "options_c2",
110
- "value": "2",
111
- "type": "float",
112
- "destination": "calibration_parameters"
113
- },
114
- {
115
- "name": "options_w",
116
- "value": "0.8",
117
- "type": "float",
118
- "destination": "calibration_parameters"
119
- },
120
- {
121
- "name": "strategy_w",
122
- "value": "adaptive",
123
- "type": "string",
124
- "destination": "calibration_parameters"
125
- },
126
- {
127
- "name": "strategy_c1",
128
- "value": "adaptive",
129
- "type": "string",
130
- "destination": "calibration_parameters"
131
- },
132
- {
133
- "name": "strategy_c2",
134
- "value": "adaptive",
135
- "type": "string",
136
- "destination": "calibration_parameters"
137
- }
138
- ],
139
- "service_parameters": [
140
- {
141
- "name": "service_timeout",
142
- "value": "400",
143
- "type": "integer",
144
- "destination": "calibration_parameters"
145
- },
146
- {
147
- "name": "http_retry",
148
- "value": "5",
149
- "type": "integer",
150
- "destination": "calibration_parameters"
151
- },
152
- {
153
- "name": "allow_redirects",
154
- "value": "True",
155
- "type": "boolean",
156
- "destination": "calibration_parameters"
157
- },
158
- {
159
- "name": "async_call",
160
- "value": "False",
161
- "type": "boolean",
162
- "destination": "calibration_parameters"
163
- },
164
- {
165
- "name": "conn_timeout",
166
- "value": "10",
167
- "type": "integer",
168
- "destination": "calibration_parameters"
169
- },
170
- {
171
- "name": "read_timeout",
172
- "value": "400",
173
- "type": "integer",
174
- "destination": "calibration_parameters"
175
- },
176
- {
177
- "name": "particles_fail",
178
- "value": "5",
179
- "type": "integer",
180
- "destination": "calibration_parameters"
181
- }
182
- ]
2
+ "model_parameters": [
3
+ {
4
+ "name": "startTime",
5
+ "value": "2002-01-01",
6
+ "type": "date",
7
+ "destination": "args"
8
+ },
9
+ {
10
+ "name": "endTime",
11
+ "value": "2006-12-31",
12
+ "type": "date",
13
+ "destination": "args"
14
+ },
15
+ {
16
+ "name": "dataStartTime",
17
+ "value": "2002-01-01",
18
+ "type": "date",
19
+ "destination": "args"
20
+ },
21
+ {
22
+ "name": "dataEndTime",
23
+ "value": "2006-12-31",
24
+ "type": "date",
25
+ "destination": "args"
26
+ },
27
+ {
28
+ "name": "cal_startTime",
29
+ "value": "2003-01-01",
30
+ "type": "date",
31
+ "destination": "args"
32
+ },
33
+ {
34
+ "name": "cal_endTime",
35
+ "value": "2006-12-31",
36
+ "type": "date",
37
+ "destination": "args"
38
+ },
39
+ {
40
+ "name": "parallelismThreads",
41
+ "value": "2",
42
+ "type": "integer",
43
+ "destination": "args"
44
+ },
45
+ {
46
+ "name": "flagLoadState",
47
+ "value": "True",
48
+ "type": "boolean",
49
+ "destination": "args"
50
+ },
51
+ {
52
+ "name": "payload",
53
+ "value": "False",
54
+ "type": "boolean",
55
+ "destination": "args"
56
+ },
57
+ {
58
+ "name": "project",
59
+ "value": "SFIR3",
60
+ "type": "string",
61
+ "destination": "args"
62
+ }
63
+ ],
64
+ "hyperparameters": [
65
+ {
66
+ "name": "min_rounds",
67
+ "value": "1",
68
+ "type": "integer",
69
+ "destination": "kwargs"
70
+ },
71
+ {
72
+ "name": "max_rounds",
73
+ "value": "2",
74
+ "type": "integer",
75
+ "destination": "kwargs"
76
+ },
77
+ {
78
+ "name": "n_particles",
79
+ "value": "10",
80
+ "type": "integer",
81
+ "destination": "kwargs"
82
+ },
83
+ {
84
+ "name": "iters",
85
+ "value": "20",
86
+ "type": "integer",
87
+ "destination": "kwargs"
88
+ },
89
+ {
90
+ "name": "n_threads",
91
+ "value": "10",
92
+ "type": "integer",
93
+ "destination": "kwargs"
94
+ },
95
+ {
96
+ "name": "options_c1",
97
+ "value": "2",
98
+ "type": "float",
99
+ "destination": "options"
100
+ },
101
+ {
102
+ "name": "options_c2",
103
+ "value": "2",
104
+ "type": "float",
105
+ "destination": "options"
106
+ },
107
+ {
108
+ "name": "options_w",
109
+ "value": "0.8",
110
+ "type": "float",
111
+ "destination": "options"
112
+ },
113
+ {
114
+ "name": "strategy_w",
115
+ "value": "adaptive",
116
+ "type": "string",
117
+ "destination": "oh_strategy"
118
+ },
119
+ {
120
+ "name": "strategy_c1",
121
+ "value": "adaptive",
122
+ "type": "string",
123
+ "destination": "oh_strategy"
124
+ },
125
+ {
126
+ "name": "strategy_c2",
127
+ "value": "adaptive",
128
+ "type": "string",
129
+ "destination": "oh_strategy"
130
+ }
131
+ ],
132
+ "service_parameters": [
133
+ {
134
+ "name": "service_timeout",
135
+ "value": "400",
136
+ "type": "integer",
137
+ "destination": "conf"
138
+ },
139
+ {
140
+ "name": "http_retry",
141
+ "value": "5",
142
+ "type": "integer",
143
+ "destination": "conf"
144
+ },
145
+ {
146
+ "name": "allow_redirects",
147
+ "value": "True",
148
+ "type": "boolean",
149
+ "destination": "conf"
150
+ },
151
+ {
152
+ "name": "async_call",
153
+ "value": "False",
154
+ "type": "boolean",
155
+ "destination": "conf"
156
+ },
157
+ {
158
+ "name": "conn_timeout",
159
+ "value": "10",
160
+ "type": "integer",
161
+ "destination": "conf"
162
+ },
163
+ {
164
+ "name": "read_timeout",
165
+ "value": "400",
166
+ "type": "integer",
167
+ "destination": "conf"
168
+ },
169
+ {
170
+ "name": "particles_fail",
171
+ "value": "5",
172
+ "type": "integer",
173
+ "destination": "conf"
174
+ }
175
+ ]
183
176
  }
@@ -1,110 +1,111 @@
1
1
  {
2
- "model_parameters": [
3
- {
4
- "name": "startTime",
5
- "value": "2011-06-08",
6
- "type": "date",
7
- "destination": "param"
8
- },
9
- {
10
- "name": "endTime",
11
- "value": "2011-07-13",
12
- "type": "date",
13
- "destination": "param"
14
- },
15
- {
16
- "name": "dataStartTime",
17
- "value": "2011-06-08",
18
- "type": "date",
19
- "destination": "param"
20
- },
21
- {
22
- "name": "dataEndTime",
23
- "value": "2011-07-13",
24
- "type": "date",
25
- "destination": "param"
26
- },
27
- {
28
- "name": "parallelismThreads",
29
- "value": "8",
30
- "type": "integer",
31
- "destination": "param"
32
- },
33
- {
34
- "name": "flagLoadState",
35
- "value": "True",
36
- "type": "boolean",
37
- "destination": "param"
38
- },
39
- {
40
- "name": "payload",
41
- "value": "False",
42
- "type": "boolean",
43
- "destination": "param"
44
- },
45
- {
46
- "name": "project",
47
- "value": "drake58hru-5min",
48
- "type": "string",
49
- "destination": "param"
50
- },
51
- {
52
- "name": "offset",
53
- "value": "5",
54
- "type": "integer",
55
- "destination": "calibration_parameters"
56
- },
57
- {
58
- "name": "count",
59
- "value": "10",
60
- "type": "integer",
61
- "destination": "calibration_parameters"
62
- },
63
- {
64
- "name": "num_threads",
65
- "value": "2",
66
- "type": "integer",
67
- "destination": "calibration_parameters"
68
- }
69
- ],
70
- "hyperparameters": [
71
- ],
72
- "service_parameters": [
73
- {
74
- "name": "service_timeout",
75
- "value": "400",
76
- "type": "integer",
77
- "destination": "calibration_parameters"
78
- },
79
- {
80
- "name": "http_retry",
81
- "value": "5",
82
- "type": "integer",
83
- "destination": "calibration_parameters"
84
- },
85
- {
86
- "name": "allow_redirects",
87
- "value": "True",
88
- "type": "boolean",
89
- "destination": "calibration_parameters"
90
- },
91
- {
92
- "name": "async_call",
93
- "value": "False",
94
- "type": "boolean",
95
- "destination": "calibration_parameters"
96
- },
97
- {
98
- "name": "conn_timeout",
99
- "value": "10",
100
- "type": "integer",
101
- "destination": "calibration_parameters"
102
- },
103
- {
104
- "name": "read_timeout",
105
- "value": "400",
106
- "type": "integer",
107
- "destination": "calibration_parameters"
108
- }
109
- ]
110
- }
2
+ "model_parameters": [
3
+ {
4
+ "name": "startTime",
5
+ "value": "2011-06-08",
6
+ "type": "date",
7
+ "destination": "args"
8
+ },
9
+ {
10
+ "name": "endTime",
11
+ "value": "2011-07-13",
12
+ "type": "date",
13
+ "destination": "args"
14
+ },
15
+ {
16
+ "name": "dataStartTime",
17
+ "value": "2011-06-08",
18
+ "type": "date",
19
+ "destination": "args"
20
+ },
21
+ {
22
+ "name": "dataEndTime",
23
+ "value": "2011-07-13",
24
+ "type": "date",
25
+ "destination": "args"
26
+ },
27
+ {
28
+ "name": "parallelismThreads",
29
+ "value": "8",
30
+ "type": "integer",
31
+ "destination": "args"
32
+ },
33
+ {
34
+ "name": "flagLoadState",
35
+ "value": "True",
36
+ "type": "boolean",
37
+ "destination": "args"
38
+ },
39
+ {
40
+ "name": "payload",
41
+ "value": "False",
42
+ "type": "boolean",
43
+ "destination": "args"
44
+ },
45
+ {
46
+ "name": "project",
47
+ "value": "drake58hru-5min",
48
+ "type": "string",
49
+ "destination": "args"
50
+ },
51
+ {
52
+ "name": "offset",
53
+ "value": "5",
54
+ "type": "integer",
55
+ "destination": "kwargs"
56
+ },
57
+ {
58
+ "name": "count",
59
+ "value": "10",
60
+ "type": "integer",
61
+ "destination": "kwargs"
62
+ },
63
+ {
64
+ "name": "num_threads",
65
+ "value": "2",
66
+ "type": "integer",
67
+ "destination": "kwargs"
68
+ }
69
+ ],
70
+ "hyperparameters": [
71
+
72
+ ],
73
+ "service_parameters": [
74
+ {
75
+ "name": "service_timeout",
76
+ "value": "400",
77
+ "type": "integer",
78
+ "destination": "conf"
79
+ },
80
+ {
81
+ "name": "http_retry",
82
+ "value": "5",
83
+ "type": "integer",
84
+ "destination": "conf"
85
+ },
86
+ {
87
+ "name": "allow_redirects",
88
+ "value": "True",
89
+ "type": "boolean",
90
+ "destination": "conf"
91
+ },
92
+ {
93
+ "name": "async_call",
94
+ "value": "False",
95
+ "type": "boolean",
96
+ "destination": "conf"
97
+ },
98
+ {
99
+ "name": "conn_timeout",
100
+ "value": "10",
101
+ "type": "integer",
102
+ "destination": "conf"
103
+ },
104
+ {
105
+ "name": "read_timeout",
106
+ "value": "400",
107
+ "type": "integer",
108
+ "destination": "conf"
109
+ }
110
+ ]
111
+ }
@@ -8,13 +8,13 @@
8
8
  "name": "service_timeout",
9
9
  "value": "60",
10
10
  "type": "integer",
11
- "destination": "calibration_parameters"
11
+ "destination": "conf"
12
12
  },
13
13
  {
14
14
  "name": "mode",
15
15
  "value": "async",
16
16
  "type": "string",
17
- "destination": "calibration_parameters"
17
+ "destination": "conf"
18
18
  }
19
19
  ]
20
20
  }
@@ -232,6 +232,22 @@ def run_sampling(data, mode, folder, results_queue):
232
232
 
233
233
  config['step_trace'] = os.path.join(folder, 'pso_step_trace.json')
234
234
 
235
+ print("Parsing Parameters...\n", flush=True)
236
+ print("steps: ", flush=True)
237
+ print(json.dumps(output_steps, indent=4))
238
+ print("args: ", flush=True)
239
+ print(json.dumps(args, indent=4))
240
+ print("options: ", flush=True)
241
+ print(json.dumps(options, indent=4))
242
+ print("oh_strategy: ", flush=True)
243
+ print(json.dumps(oh_strategy, indent=4))
244
+ print("config: ", flush=True)
245
+ print(json.dumps(config, indent=4))
246
+ print("metainfo: ", flush=True)
247
+ print(json.dumps(metainfo, indent=4))
248
+ print("kwargs: ", flush=True)
249
+ print(json.dumps(parameter_map, indent=4))
250
+
235
251
  print("Running Sampling..\n", flush=True)
236
252
  trace = run_sampler(output_steps,
237
253
  args,
@@ -273,6 +289,22 @@ def run_optimization(data, folder, results_queue):
273
289
 
274
290
  config['step_trace'] = os.path.join(folder, 'pso_step_trace.json')
275
291
 
292
+ print("Parsing Parameters...\n", flush=True)
293
+ print("steps: ", flush=True)
294
+ print(json.dumps(output_steps, indent=4))
295
+ print("args: ", flush=True)
296
+ print(json.dumps(args, indent=4))
297
+ print("options: ", flush=True)
298
+ print(json.dumps(options, indent=4))
299
+ print("oh_strategy: ", flush=True)
300
+ print(json.dumps(oh_strategy, indent=4))
301
+ print("config: ", flush=True)
302
+ print(json.dumps(config, indent=4))
303
+ print("metainfo: ", flush=True)
304
+ print(json.dumps(metainfo, indent=4))
305
+ print("kwargs: ", flush=True)
306
+ print(json.dumps(parameter_map, indent=4))
307
+
276
308
  print("Running MG-PSO Optimization...\n", flush=True)
277
309
  optimizer, trace = global_best(output_steps,
278
310
  rounds=(int(pp('min_rounds', parameter_map)), int(pp('max_rounds', parameter_map))),