mg-pso-gui 0.0.62__tar.gz → 0.0.64__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- mg-pso-gui-0.0.62/README.md → mg-pso-gui-0.0.64/PKG-INFO +15 -0
- mg-pso-gui-0.0.64/mg_pso_gui.egg-info/PKG-INFO +322 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mg_pso_gui.egg-info/SOURCES.txt +0 -1
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/setup.py +2 -2
- mg-pso-gui-0.0.62/PKG-INFO +0 -16
- mg-pso-gui-0.0.62/mg_pso_gui.egg-info/PKG-INFO +0 -16
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mg_pso_gui.egg-info/dependency_links.txt +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mg_pso_gui.egg-info/entry_points.txt +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mg_pso_gui.egg-info/requires.txt +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mg_pso_gui.egg-info/top_level.txt +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/__init__.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/BoundsEditorWindow.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/BoundsList.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/CalibrationParametersView.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/FunctionsList.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/HomePage.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/ListParametersView.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/OptionManager.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/StaticParameterView.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/StepView.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/__init__.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/images/collapse.png +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/images/down.png +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/images/expand.png +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/images/trash.png +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/gui/images/up.png +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/mgpsogui.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/util/CTkToolTip/__init__.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/util/CTkToolTip/ctk_tooltip.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/util/GraphGenerator.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/util/PSORunner.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/mgpsogui/util/__init__.py +0 -0
- {mg-pso-gui-0.0.62 → mg-pso-gui-0.0.64}/setup.cfg +0 -0
@@ -1,3 +1,18 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: mg-pso-gui
|
3
|
+
Version: 0.0.64
|
4
|
+
Summary: GUI for MG-PSO
|
5
|
+
Author: Robert Cordingly
|
6
|
+
Author-email: <rcording@uw.ed>
|
7
|
+
Keywords: python,muti-group,pso,particle,swarm,optimization,gui
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
9
|
+
Classifier: Intended Audience :: Developers
|
10
|
+
Classifier: Programming Language :: Python :: 3.9
|
11
|
+
Classifier: Operating System :: Unix
|
12
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
13
|
+
Classifier: Operating System :: Microsoft :: Windows
|
14
|
+
Description-Content-Type: text/markdown
|
15
|
+
|
1
16
|
# Multigroup PSO Gui
|
2
17
|
|
3
18
|
This application provides an interface for setting up, configuring, running, and the visualization of multigroup PSO training.
|
@@ -0,0 +1,322 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: mg-pso-gui
|
3
|
+
Version: 0.0.64
|
4
|
+
Summary: GUI for MG-PSO
|
5
|
+
Author: Robert Cordingly
|
6
|
+
Author-email: <rcording@uw.ed>
|
7
|
+
Keywords: python,muti-group,pso,particle,swarm,optimization,gui
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
9
|
+
Classifier: Intended Audience :: Developers
|
10
|
+
Classifier: Programming Language :: Python :: 3.9
|
11
|
+
Classifier: Operating System :: Unix
|
12
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
13
|
+
Classifier: Operating System :: Microsoft :: Windows
|
14
|
+
Description-Content-Type: text/markdown
|
15
|
+
|
16
|
+
# Multigroup PSO Gui
|
17
|
+
|
18
|
+
This application provides an interface for setting up, configuring, running, and the visualization of multigroup PSO training.
|
19
|
+
|
20
|
+
## Instructions for Ubuntu
|
21
|
+
|
22
|
+
To run the interface you must also install Tkinter:
|
23
|
+
|
24
|
+
```bash
|
25
|
+
sudo apt install python-tk
|
26
|
+
```
|
27
|
+
|
28
|
+
To install the interface simply run:
|
29
|
+
|
30
|
+
```bash
|
31
|
+
python3 -m pip install mg-pso-gui
|
32
|
+
```
|
33
|
+
|
34
|
+
Once the package is downloaded and install run this command to open the interface:
|
35
|
+
|
36
|
+
```bash
|
37
|
+
mgpsogui
|
38
|
+
```
|
39
|
+
|
40
|
+
You may need to add a folder to PATH.
|
41
|
+
|
42
|
+
**Note:** If you run into an error saying that PIL.Image was not able to be imported on Ubuntu please force reinstall Pillow.
|
43
|
+
|
44
|
+
```bash
|
45
|
+
python3 -m pip install --upgrade --force-reinstall Pillow
|
46
|
+
```
|
47
|
+
|
48
|
+
## Instructions for Windows
|
49
|
+
|
50
|
+
Download and install Python 3.10 through the Microsoft Store, this makes Python easily accessible in Windows Terminal.
|
51
|
+
|
52
|
+
Once installed run this command to install the interface:
|
53
|
+
|
54
|
+
```bash
|
55
|
+
python3 -m pip install mg-pso-gui
|
56
|
+
```
|
57
|
+
|
58
|
+
You may need to add the folder the application was downloaded to into PATH. At the end of the installation message it will say the folder location (e.g. C:\Users\robertcordingly\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts). After adding that location to PATH, you can use this command to open the interface:
|
59
|
+
|
60
|
+
```bash
|
61
|
+
mgpsogui
|
62
|
+
```
|
63
|
+
|
64
|
+
If you did not add the directory to PATH, it can be ran like this:
|
65
|
+
|
66
|
+
```bash
|
67
|
+
C:\Users\robertcordingly\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts\mgpsogui.exe
|
68
|
+
```
|
69
|
+
|
70
|
+
## Instructions for MacOS
|
71
|
+
|
72
|
+
To install Tkinter and Python 3 it is best to use Homebrew:
|
73
|
+
|
74
|
+
Install Homebrew
|
75
|
+
|
76
|
+
```bash
|
77
|
+
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
78
|
+
```
|
79
|
+
|
80
|
+
Install Python3 and Tkinter
|
81
|
+
|
82
|
+
```bash
|
83
|
+
brew install python3
|
84
|
+
```
|
85
|
+
|
86
|
+
```bash
|
87
|
+
brew install tkinter
|
88
|
+
```
|
89
|
+
|
90
|
+
Then install MG PSO Gui:
|
91
|
+
|
92
|
+
```bash
|
93
|
+
python3 -m pip install mg-pso-gui
|
94
|
+
```
|
95
|
+
|
96
|
+
You may need to add /Library/Frameworks/Python.framework/Versions/3.8/bin to path to run the interface with 'mgpsogui,' otherwise run the interface:
|
97
|
+
|
98
|
+
```bash
|
99
|
+
/Library/Frameworks/Python.framework/Versions/3.8/bin/mgpsogui
|
100
|
+
```
|
101
|
+
|
102
|
+
# Getting Started
|
103
|
+
|
104
|
+
After getting the GUI to launch, it is first recommended to start with one of the default config files. Default config files are available here: https://drive.google.com/file/d/1Ra4Um7KgCghMidyrrLrD6wFSXJZd3zkX/view?usp=share_link
|
105
|
+
|
106
|
+
To load a config simply click the "load" button in the left side bar and select the file using the file picker. After a config has been loaded, enter a service URL, and click "Connect". If the connection is successful the other tabs on the interface will be unlocked and you will have full access to all of the interface's features.
|
107
|
+
|
108
|
+
# Tab Overview
|
109
|
+
|
110
|
+
Each tab of the interface serves a different purpose described here.
|
111
|
+
|
112
|
+
## Platform
|
113
|
+
|
114
|
+
The platform tab is where you defined the backend service used to train the model. If the service already exists, simply add the URL to the service field and press connect to get parameters from the service. After doing this the other tabs will unlock.
|
115
|
+
|
116
|
+
If you do not already have a backend service deployed, the platform tab provides tools to create a local environment using Docker and Minikube.
|
117
|
+
|
118
|
+
## Setup
|
119
|
+
|
120
|
+
The setup tab is where all parameters about the training process are defined. The Group Editor allow you to define groups, the parameters each group uses, and the functions used. The available parameters are defined by the service.
|
121
|
+
|
122
|
+
Alongside the Group Editor is the Static Parameter and Calibration Parameter editors. These editors allow further customization of the training process.
|
123
|
+
|
124
|
+
## Run
|
125
|
+
|
126
|
+
The run tab allows you to start the training process, stop it, and view the progress. If there is an error in the training process information will be shown in the text box.
|
127
|
+
|
128
|
+
## Visualize
|
129
|
+
|
130
|
+
The Visualize tab allows you to generate a variety of different graphs and tables. Some graphs are filled in while the training process occurs while other require full steps to complete training. To export and further view graphs the "Open in Browser" allows a figure to be opened in your default web browser and open and interactive version of the graph.
|
131
|
+
|
132
|
+
# Example Configuration
|
133
|
+
|
134
|
+
```json
|
135
|
+
{
|
136
|
+
"arguments": {
|
137
|
+
"param": [
|
138
|
+
{
|
139
|
+
"name": "startTime",
|
140
|
+
"value": "2002-01-01"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"name": "endTime",
|
144
|
+
"value": "2006-12-31"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"name": "dataStartTime",
|
148
|
+
"value": "2002-01-01"
|
149
|
+
},
|
150
|
+
{
|
151
|
+
"name": "dataEndTime",
|
152
|
+
"value": "2006-12-31"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"name": "cal_startTime",
|
156
|
+
"value": "2003-01-01"
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"name": "cal_endTime",
|
160
|
+
"value": "2006-12-31"
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"name": "parallelismThreads",
|
164
|
+
"value": "2"
|
165
|
+
},
|
166
|
+
{
|
167
|
+
"name": "flagLoadState",
|
168
|
+
"value": "True"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"name": "payload",
|
172
|
+
"value": "false"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"name": "project",
|
176
|
+
"value": "SFIR3"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"url": "http://csip.engr.colostate.edu:8087/csip-oms/m/ages/0.3.0",
|
180
|
+
"files": {}
|
181
|
+
},
|
182
|
+
"calibration_parameters": [
|
183
|
+
{
|
184
|
+
"name": "min_rounds",
|
185
|
+
"value": "1"
|
186
|
+
},
|
187
|
+
{
|
188
|
+
"name": "max_rounds",
|
189
|
+
"value": "2"
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"name": "n_particles",
|
193
|
+
"value": "10"
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"name": "iters",
|
197
|
+
"value": "20"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"name": "n_threads",
|
201
|
+
"value": "10"
|
202
|
+
},
|
203
|
+
{
|
204
|
+
"name": "ftol",
|
205
|
+
"value": "NULL"
|
206
|
+
},
|
207
|
+
{
|
208
|
+
"name": "options_c1",
|
209
|
+
"value": "2"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"name": "options_c2",
|
213
|
+
"value": "2"
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"name": "options_w",
|
217
|
+
"value": "0.8"
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"name": "strategy_w",
|
221
|
+
"value": "adaptive"
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"name": "strategy_c1",
|
225
|
+
"value": "adaptive"
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"name": "strategy_c2",
|
229
|
+
"value": "adaptive"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"name": "service_timeout",
|
233
|
+
"value": "400"
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"name": "http_retry",
|
237
|
+
"value": "5"
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"name": "allow_redirects",
|
241
|
+
"value": "True"
|
242
|
+
},
|
243
|
+
{
|
244
|
+
"name": "async_call",
|
245
|
+
"value": "False"
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"name": "conn_timeout",
|
249
|
+
"value": "10"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"name": "read_timeout",
|
253
|
+
"value": "400"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"name": "particles_fail",
|
257
|
+
"value": "5"
|
258
|
+
}
|
259
|
+
],
|
260
|
+
"steps": [
|
261
|
+
{
|
262
|
+
"param": [
|
263
|
+
{
|
264
|
+
"name": "soilOutLPS",
|
265
|
+
"bounds": [
|
266
|
+
0.0,
|
267
|
+
2.0
|
268
|
+
]
|
269
|
+
},
|
270
|
+
{
|
271
|
+
"name": "lagInterflow",
|
272
|
+
"bounds": [
|
273
|
+
10.0,
|
274
|
+
80.0
|
275
|
+
]
|
276
|
+
}
|
277
|
+
],
|
278
|
+
"objfunc": [
|
279
|
+
{
|
280
|
+
"name": "ns",
|
281
|
+
"of": "ns",
|
282
|
+
"weight": 1.0,
|
283
|
+
"data": [
|
284
|
+
"obs_data02_14.csv/obs/orun[1]",
|
285
|
+
"output/csip_run/out/Outlet.csv/output/catchmentSimRunoff"
|
286
|
+
]
|
287
|
+
}
|
288
|
+
]
|
289
|
+
},
|
290
|
+
{
|
291
|
+
"param": [
|
292
|
+
{
|
293
|
+
"name": "flowRouteTA",
|
294
|
+
"bounds": [
|
295
|
+
0.4,
|
296
|
+
5.0
|
297
|
+
]
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"name": "soilMaxDPS",
|
301
|
+
"bounds": [
|
302
|
+
0.0,
|
303
|
+
5.0
|
304
|
+
]
|
305
|
+
}
|
306
|
+
],
|
307
|
+
"objfunc": [
|
308
|
+
{
|
309
|
+
"name": "ns",
|
310
|
+
"of": "ns",
|
311
|
+
"weight": 1.0,
|
312
|
+
"data": [
|
313
|
+
"obs_data02_14.csv/obs/orun[1]",
|
314
|
+
"output/csip_run/out/Outlet.csv/output/catchmentSimRunoff"
|
315
|
+
]
|
316
|
+
}
|
317
|
+
]
|
318
|
+
}
|
319
|
+
]
|
320
|
+
}
|
321
|
+
```
|
322
|
+
|
@@ -2,9 +2,9 @@ from setuptools import setup, find_packages
|
|
2
2
|
import codecs
|
3
3
|
import os
|
4
4
|
|
5
|
-
VERSION = '0.0.
|
5
|
+
VERSION = '0.0.64'
|
6
6
|
DESCRIPTION = 'GUI for MG-PSO'
|
7
|
-
LONG_DESCRIPTION = '
|
7
|
+
LONG_DESCRIPTION = open('../README.md').read()
|
8
8
|
|
9
9
|
# Setting up
|
10
10
|
setup(
|
mg-pso-gui-0.0.62/PKG-INFO
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: mg-pso-gui
|
3
|
-
Version: 0.0.62
|
4
|
-
Summary: GUI for MG-PSO
|
5
|
-
Author: Robert Cordingly
|
6
|
-
Author-email: <rcording@uw.ed>
|
7
|
-
Keywords: python,muti-group,pso,particle,swarm,optimization,gui
|
8
|
-
Classifier: Development Status :: 1 - Planning
|
9
|
-
Classifier: Intended Audience :: Developers
|
10
|
-
Classifier: Programming Language :: Python :: 3.9
|
11
|
-
Classifier: Operating System :: Unix
|
12
|
-
Classifier: Operating System :: MacOS :: MacOS X
|
13
|
-
Classifier: Operating System :: Microsoft :: Windows
|
14
|
-
Description-Content-Type: text/markdown
|
15
|
-
|
16
|
-
GUI for MG-PSO
|
@@ -1,16 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: mg-pso-gui
|
3
|
-
Version: 0.0.62
|
4
|
-
Summary: GUI for MG-PSO
|
5
|
-
Author: Robert Cordingly
|
6
|
-
Author-email: <rcording@uw.ed>
|
7
|
-
Keywords: python,muti-group,pso,particle,swarm,optimization,gui
|
8
|
-
Classifier: Development Status :: 1 - Planning
|
9
|
-
Classifier: Intended Audience :: Developers
|
10
|
-
Classifier: Programming Language :: Python :: 3.9
|
11
|
-
Classifier: Operating System :: Unix
|
12
|
-
Classifier: Operating System :: MacOS :: MacOS X
|
13
|
-
Classifier: Operating System :: Microsoft :: Windows
|
14
|
-
Description-Content-Type: text/markdown
|
15
|
-
|
16
|
-
GUI for MG-PSO
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|