Skip to content

Commit 866e060

Browse files
committed
Clear ipynb files
1 parent 80b9cb1 commit 866e060

File tree

113 files changed

+2382
-7231
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2382
-7231
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
:target: https://www.apache.org/licenses/LICENSE-2.0
99

1010

11-
.. |logo| image:: https://raw.githubusercontent.com/anyoptimization/pymoo/master/data/logo.png
11+
.. |logo| image:: https://github.com/anyoptimization/pymoo-data/blob/main/logo.png?raw=true
1212
:target: https://pymoo.org
1313
:alt: pymoo
1414

1515

16-
.. |animation| image:: https://raw.githubusercontent.com/anyoptimization/pymoo/master/data/animation.gif
16+
.. |animation| image:: https://github.com/anyoptimization/pymoo-data/blob/main/animation.gif?raw=true
1717
:target: https://pymoo.org
1818
:alt: pymoo
1919

docs/run.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@
99

1010
IPYNBS = [e for e in files_from_folder(DOCS, regex='**/*.ipynb', skip=SKIP) if ".ipynb_checkpoints" not in e]
1111

12+
13+
failed = []
14+
1215
for ipynb in IPYNBS:
1316
print(ipynb, end="")
1417
try:
1518
KERNEL = start_new_kernel(kernel_name='python3')
16-
run_ipynb(KERNEL, ipynb, overwrite=True, remove_trailing_empty_cells=True)
19+
run_ipynb(KERNEL, ipynb, overwrite=True, remove_trailing_empty_cells=True, verbose=False)
1720
print(" OK")
1821
except:
22+
failed.append(ipynb)
1923
print(" FAIL")
24+
25+
print("FAILED:", len(failed))
26+
27+
for e in failed:
28+
print(e)

docs/source/algorithms/hyperparameters.ipynb

Lines changed: 46 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
{
44
"cell_type": "raw",
55
"metadata": {
6-
"raw_mimetype": "text/restructuredtext",
76
"pycharm": {
87
"name": "#%% raw\n"
9-
}
8+
},
9+
"raw_mimetype": "text/restructuredtext"
1010
},
1111
"source": [
1212
".. _nb_algorithms_hyperparameters:"
@@ -26,10 +26,10 @@
2626
{
2727
"cell_type": "raw",
2828
"metadata": {
29-
"raw_mimetype": "text/restructuredtext",
3029
"pycharm": {
3130
"name": "#%% raw\n"
32-
}
31+
},
32+
"raw_mimetype": "text/restructuredtext"
3333
},
3434
"source": [
3535
".. admonition:: Info\n",
@@ -51,29 +51,19 @@
5151
},
5252
{
5353
"cell_type": "code",
54-
"execution_count": 1,
54+
"execution_count": null,
5555
"metadata": {
56+
"execution": {
57+
"iopub.execute_input": "2022-07-29T18:21:25.160243Z",
58+
"iopub.status.busy": "2022-07-29T18:21:25.159678Z",
59+
"iopub.status.idle": "2022-07-29T18:21:25.282419Z",
60+
"shell.execute_reply": "2022-07-29T18:21:25.281202Z"
61+
},
5662
"pycharm": {
5763
"name": "#%%\n"
5864
}
5965
},
60-
"outputs": [
61-
{
62-
"data": {
63-
"text/plain": [
64-
"{'mating.jitter': <pymoo.core.variable.Choice at 0x7fddb9d20f10>,\n",
65-
" 'mating.CR': <pymoo.core.variable.Real at 0x7fddb9d20eb0>,\n",
66-
" 'mating.crossover': <pymoo.core.variable.Choice at 0x7fddb9b32ac0>,\n",
67-
" 'mating.F': <pymoo.core.variable.Real at 0x7fddb9d20e20>,\n",
68-
" 'mating.n_diffs': <pymoo.core.variable.Choice at 0x7fddb9d20dc0>,\n",
69-
" 'mating.selection': <pymoo.core.variable.Choice at 0x7fddb9d20d60>}"
70-
]
71-
},
72-
"execution_count": 1,
73-
"metadata": {},
74-
"output_type": "execute_result"
75-
}
76-
],
66+
"outputs": [],
7767
"source": [
7868
"import json\n",
7969
"from pymoo.algorithms.soo.nonconvex.de import DE\n",
@@ -107,25 +97,19 @@
10797
},
10898
{
10999
"cell_type": "code",
110-
"execution_count": 2,
100+
"execution_count": null,
111101
"metadata": {
102+
"execution": {
103+
"iopub.execute_input": "2022-07-29T18:21:25.288658Z",
104+
"iopub.status.busy": "2022-07-29T18:21:25.288217Z",
105+
"iopub.status.idle": "2022-07-29T18:21:37.210503Z",
106+
"shell.execute_reply": "2022-07-29T18:21:37.209863Z"
107+
},
112108
"pycharm": {
113109
"name": "#%%\n"
114110
}
115111
},
116-
"outputs": [
117-
{
118-
"name": "stdout",
119-
"output_type": "stream",
120-
"text": [
121-
"{'mutation.eta': 24.01087920319256, 'mutation.prob': 0.31947746041945063, 'crossover.zeta': 0.19712354833387533, 'crossover.eta': 0.06510354041781266, 'family_size': 9, 'n_parents': 10, 'n_offsprings': 2, 'pop_size': 122}\n",
122-
"Best solution found: \n",
123-
"X = [0.49931263 0.49971117 0.49995666 0.50012005 0.49995485 0.49954006\n",
124-
" 0.50013753 0.49992644 0.50004025 0.50003723]\n",
125-
"F = [8.13108862e-07]\n"
126-
]
127-
}
128-
],
112+
"outputs": [],
129113
"source": [
130114
"from pymoo.algorithms.hyperparameters import SingleObjectiveSingleRun, HyperparameterProblem\n",
131115
"from pymoo.algorithms.soo.nonconvex.g3pcx import G3PCX\n",
@@ -168,25 +152,19 @@
168152
},
169153
{
170154
"cell_type": "code",
171-
"execution_count": 3,
155+
"execution_count": null,
172156
"metadata": {
157+
"execution": {
158+
"iopub.execute_input": "2022-07-29T18:21:37.213740Z",
159+
"iopub.status.busy": "2022-07-29T18:21:37.213398Z",
160+
"iopub.status.idle": "2022-07-29T18:21:44.233047Z",
161+
"shell.execute_reply": "2022-07-29T18:21:44.232092Z"
162+
},
173163
"pycharm": {
174164
"name": "#%%\n"
175165
}
176166
},
177-
"outputs": [
178-
{
179-
"name": "stdout",
180-
"output_type": "stream",
181-
"text": [
182-
"{'mutation.eta': 10.202478525408438, 'mutation.prob': 0.18217181670454258, 'crossover.zeta': 0.2672212328003948, 'crossover.eta': 0.038505365248462986, 'family_size': 10, 'n_parents': 4, 'n_offsprings': 5, 'pop_size': 169}\n",
183-
"Best solution found: \n",
184-
"X = [0.49931151 0.49958918 0.49947128 0.50076286 0.50029319 0.50035433\n",
185-
" 0.4995032 0.49959396 0.49910168 0.50016305]\n",
186-
"F = [2.96104366e-06]\n"
187-
]
188-
}
189-
],
167+
"outputs": [],
190168
"source": [
191169
"from pymoo.algorithms.hyperparameters import SingleObjectiveSingleRun, HyperparameterProblem\n",
192170
"from pymoo.algorithms.soo.nonconvex.g3pcx import G3PCX\n",
@@ -231,38 +209,19 @@
231209
},
232210
{
233211
"cell_type": "code",
234-
"execution_count": 4,
212+
"execution_count": null,
235213
"metadata": {
214+
"execution": {
215+
"iopub.execute_input": "2022-07-29T18:21:44.237637Z",
216+
"iopub.status.busy": "2022-07-29T18:21:44.237353Z",
217+
"iopub.status.idle": "2022-07-29T18:22:00.709442Z",
218+
"shell.execute_reply": "2022-07-29T18:22:00.708080Z"
219+
},
236220
"pycharm": {
237221
"name": "#%%\n"
238222
}
239223
},
240-
"outputs": [
241-
{
242-
"name": "stdout",
243-
"output_type": "stream",
244-
"text": [
245-
"=================================================\n",
246-
"n_gen | n_eval | f_avg | f_min \n",
247-
"=================================================\n",
248-
" 1 | 5 | 0.0011469191 | 0.0001158058\n",
249-
" 2 | 10 | 0.0003004380 | 1.324378E-06\n",
250-
" 3 | 15 | 0.0001083746 | 1.324378E-06\n",
251-
" 4 | 20 | 0.0000604004 | 1.324378E-06\n",
252-
" 5 | 25 | 6.940028E-06 | 1.324378E-06\n",
253-
" 6 | 30 | 2.363478E-06 | 1.324378E-06\n",
254-
" 7 | 35 | 2.184765E-06 | 1.324378E-06\n",
255-
" 8 | 40 | 1.801311E-06 | 1.290965E-06\n",
256-
" 9 | 45 | 1.457222E-06 | 7.690855E-07\n",
257-
" 10 | 50 | 1.457222E-06 | 7.690855E-07\n",
258-
"{'mutation.eta': 3.003840525176007, 'mutation.prob': 0.2613802441259011, 'crossover.zeta': 0.2092756091839343, 'crossover.eta': 0.13100894947710487, 'family_size': 9, 'n_parents': 7, 'n_offsprings': 4, 'pop_size': 63}\n",
259-
"Best solution found: \n",
260-
"X = [0.50058063 0.50049996 0.49944047 0.49958107 0.50008284 0.50007215\n",
261-
" 0.49972702 0.50003434 0.49996608 0.50038491]\n",
262-
"F = [1.31273882e-06]\n"
263-
]
264-
}
265-
],
224+
"outputs": [],
266225
"source": [
267226
"from pymoo.algorithms.hyperparameters import HyperparameterProblem, MultiRun, stats_single_objective_mean\n",
268227
"from pymoo.algorithms.soo.nonconvex.g3pcx import G3PCX\n",
@@ -307,38 +266,19 @@
307266
},
308267
{
309268
"cell_type": "code",
310-
"execution_count": 5,
269+
"execution_count": null,
311270
"metadata": {
271+
"execution": {
272+
"iopub.execute_input": "2022-07-29T18:22:00.714327Z",
273+
"iopub.status.busy": "2022-07-29T18:22:00.713885Z",
274+
"iopub.status.idle": "2022-07-29T18:22:17.733850Z",
275+
"shell.execute_reply": "2022-07-29T18:22:17.733006Z"
276+
},
312277
"pycharm": {
313278
"name": "#%%\n"
314279
}
315280
},
316-
"outputs": [
317-
{
318-
"name": "stdout",
319-
"output_type": "stream",
320-
"text": [
321-
"=================================================\n",
322-
"n_gen | n_eval | f_avg | f_min \n",
323-
"=================================================\n",
324-
" 1 | 5 | 5.298000E+02 | 5.030000E+02\n",
325-
" 2 | 10 | 4.895333E+02 | 4.276667E+02\n",
326-
" 3 | 15 | 4.763333E+02 | 4.276667E+02\n",
327-
" 4 | 20 | 4.571333E+02 | 4.276667E+02\n",
328-
" 5 | 25 | 4.411333E+02 | 4.276667E+02\n",
329-
" 6 | 30 | 4.382000E+02 | 4.276667E+02\n",
330-
" 7 | 35 | 4.360667E+02 | 4.276667E+02\n",
331-
" 8 | 40 | 4.200667E+02 | 3.850000E+02\n",
332-
" 9 | 45 | 4.068667E+02 | 3.850000E+02\n",
333-
" 10 | 50 | 4.068667E+02 | 3.850000E+02\n",
334-
"{'mutation.eta': 22.546590161392896, 'mutation.prob': 0.13789985939149485, 'crossover.zeta': 0.20871365511506024, 'crossover.eta': 0.12039717249146664, 'family_size': 10, 'n_parents': 7, 'n_offsprings': 4, 'pop_size': 65}\n",
335-
"Best solution found: \n",
336-
"X = [0.5005912 0.499759 0.50062838 0.49857344 0.49949559 0.50094711\n",
337-
" 0.49905868 0.49954207 0.49892447 0.50003376]\n",
338-
"F = [6.24263744e-06]\n"
339-
]
340-
}
341-
],
281+
"outputs": [],
342282
"source": [
343283
"from pymoo.algorithms.hyperparameters import HyperparameterProblem, MultiRun, stats_avg_nevals\n",
344284
"from pymoo.algorithms.soo.nonconvex.g3pcx import G3PCX\n",
@@ -389,7 +329,7 @@
389329
"name": "python",
390330
"nbconvert_exporter": "python",
391331
"pygments_lexer": "ipython3",
392-
"version": "3.8.8"
332+
"version": "3.10.5"
393333
},
394334
"pycharm": {
395335
"stem_cell": {
@@ -403,4 +343,4 @@
403343
},
404344
"nbformat": 4,
405345
"nbformat_minor": 4
406-
}
346+
}

docs/source/algorithms/index.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"name": "python",
9494
"nbconvert_exporter": "python",
9595
"pygments_lexer": "ipython3",
96-
"version": "3.9.12"
96+
"version": "3.10.5"
9797
},
9898
"pycharm": {
9999
"stem_cell": {

docs/source/algorithms/initialization.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
},
3333
{
3434
"cell_type": "code",
35-
"execution_count": 1,
35+
"execution_count": null,
3636
"metadata": {
3737
"execution": {
38-
"iopub.execute_input": "2022-07-03T13:11:22.882070Z",
39-
"iopub.status.busy": "2022-07-03T13:11:22.876189Z",
40-
"iopub.status.idle": "2022-07-03T13:11:23.341960Z",
41-
"shell.execute_reply": "2022-07-03T13:11:23.341258Z"
38+
"iopub.execute_input": "2022-07-29T18:22:22.674957Z",
39+
"iopub.status.busy": "2022-07-29T18:22:22.674481Z",
40+
"iopub.status.idle": "2022-07-29T18:22:22.797082Z",
41+
"shell.execute_reply": "2022-07-29T18:22:22.796277Z"
4242
},
4343
"tags": []
4444
},
@@ -65,7 +65,7 @@
6565
"name": "python",
6666
"nbconvert_exporter": "python",
6767
"pygments_lexer": "ipython3",
68-
"version": "3.9.12"
68+
"version": "3.10.5"
6969
},
7070
"pycharm": {
7171
"stem_cell": {

docs/source/algorithms/list.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"name": "python",
5656
"nbconvert_exporter": "python",
5757
"pygments_lexer": "ipython3",
58-
"version": "3.9.12"
58+
"version": "3.10.5"
5959
},
6060
"pycharm": {
6161
"stem_cell": {
@@ -69,4 +69,4 @@
6969
},
7070
"nbformat": 4,
7171
"nbformat_minor": 4
72-
}
72+
}

docs/source/algorithms/moo/age.ipynb

Lines changed: 17 additions & 51 deletions
Large diffs are not rendered by default.

docs/source/algorithms/moo/age2.ipynb

Lines changed: 9 additions & 26 deletions
Large diffs are not rendered by default.

docs/source/algorithms/moo/ctaea.ipynb

Lines changed: 22 additions & 68 deletions
Large diffs are not rendered by default.

docs/source/algorithms/moo/dnsga2.ipynb

Lines changed: 10 additions & 197 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)