coco-visualize 0.1.0rc2__tar.gz

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.
Files changed (30) hide show
  1. coco_visualize-0.1.0rc2/.github/workflows/build-wheel.yml +26 -0
  2. coco_visualize-0.1.0rc2/.github/workflows/test.yml +48 -0
  3. coco_visualize-0.1.0rc2/.gitignore +9 -0
  4. coco_visualize-0.1.0rc2/AUTHORS +6 -0
  5. coco_visualize-0.1.0rc2/LICENSE +34 -0
  6. coco_visualize-0.1.0rc2/MANIFEST.in +4 -0
  7. coco_visualize-0.1.0rc2/PKG-INFO +39 -0
  8. coco_visualize-0.1.0rc2/README.md +14 -0
  9. coco_visualize-0.1.0rc2/cocoviz.svg +192 -0
  10. coco_visualize-0.1.0rc2/example.ipynb +130 -0
  11. coco_visualize-0.1.0rc2/pyproject.toml +59 -0
  12. coco_visualize-0.1.0rc2/setup.cfg +4 -0
  13. coco_visualize-0.1.0rc2/src/coco_visualize.egg-info/PKG-INFO +39 -0
  14. coco_visualize-0.1.0rc2/src/coco_visualize.egg-info/SOURCES.txt +28 -0
  15. coco_visualize-0.1.0rc2/src/coco_visualize.egg-info/dependency_links.txt +1 -0
  16. coco_visualize-0.1.0rc2/src/coco_visualize.egg-info/requires.txt +4 -0
  17. coco_visualize-0.1.0rc2/src/coco_visualize.egg-info/top_level.txt +1 -0
  18. coco_visualize-0.1.0rc2/src/cocoviz/__init__.py +6 -0
  19. coco_visualize-0.1.0rc2/src/cocoviz/_typing.py +4 -0
  20. coco_visualize-0.1.0rc2/src/cocoviz/_version.py +16 -0
  21. coco_visualize-0.1.0rc2/src/cocoviz/exceptions.py +45 -0
  22. coco_visualize-0.1.0rc2/src/cocoviz/indicator.py +120 -0
  23. coco_visualize-0.1.0rc2/src/cocoviz/plot.py +29 -0
  24. coco_visualize-0.1.0rc2/src/cocoviz/result.py +312 -0
  25. coco_visualize-0.1.0rc2/src/cocoviz/rtp.py +153 -0
  26. coco_visualize-0.1.0rc2/src/cocoviz/targets.py +39 -0
  27. coco_visualize-0.1.0rc2/src/cocoviz/utilities.py +23 -0
  28. coco_visualize-0.1.0rc2/tests/test_result.py +45 -0
  29. coco_visualize-0.1.0rc2/tests/test_resultset.py +42 -0
  30. coco_visualize-0.1.0rc2/tests/test_runtime_profile.py +39 -0
@@ -0,0 +1,26 @@
1
+ name: Build wheels
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ wheel:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v5
16
+ with:
17
+ python-version: "3.10"
18
+ - name: Install dependencies
19
+ run: python -m pip install --upgrade pip
20
+ - name: Build wheel
21
+ run: python -m pip wheel -w dist/ .
22
+ - name: Archive wheel
23
+ uses: actions/upload-artifact@v4
24
+ with:
25
+ name: python-wheel
26
+ path: dist/cocoviz*.whl
@@ -0,0 +1,48 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ branches: [ "main" ]
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - name: Set up Python
14
+ uses: actions/setup-python@v5
15
+ with:
16
+ python-version: "3.10"
17
+ - name: Install dependencies
18
+ run: python -m pip install --upgrade pip
19
+ - name: Build wheel
20
+ run: python -m pip wheel -w dist/ .
21
+ - name: Archive wheel
22
+ uses: actions/upload-artifact@v4
23
+ with:
24
+ name: python-wheel
25
+ path: dist/cocoviz*.whl
26
+ test:
27
+ strategy:
28
+ fail-fast: false
29
+ matrix:
30
+ runs-on: [ubuntu-latest, macos-latest, windows-latest]
31
+ python-version: ["3.10", "3.11", "3.12"]
32
+ runs-on: ${{matrix.runs-on}}
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - name: Set up Python ${{ matrix.python-version }}
36
+ uses: actions/setup-python@v5
37
+ with:
38
+ python-version: ${{ matrix.python-version }}
39
+ - name: Install dependencies
40
+ run: |
41
+ python -m pip install --upgrade pip
42
+ python -m pip install ruff pytest
43
+ - name: Install package
44
+ run: python -m pip install .
45
+ - name: Lint with ruff
46
+ run: ruff check --output-format=github .
47
+ - name: Run tests
48
+ run: python -m pytest tests/
@@ -0,0 +1,9 @@
1
+ *.pyc
2
+ __pycache__
3
+ *.egg-info/
4
+ .ipynb_checkpoints/
5
+ Untitled*.ipynb
6
+ # Example data
7
+ *.csv
8
+ # Version file autogenerated by build system
9
+ src/cocoviz/_version.py
@@ -0,0 +1,6 @@
1
+ In alphabetical order:
2
+
3
+ - Dimo Brockhoff
4
+ - Nikolaus Hansen
5
+ - Olaf Mersmann
6
+ - Tea Tušar
@@ -0,0 +1,34 @@
1
+ Copyright (c) by the NumBBO/CoCO team. See AUTHORS for more details.
2
+
3
+ Some rights reserved.
4
+
5
+ ### 3-clause BSD License ###
6
+
7
+ Redistribution and use in source and binary forms of the software as well
8
+ as documentation, with or without modification, are permitted provided
9
+ that the following conditions are met:
10
+
11
+ 1. Redistributions of source code must retain the above copyright
12
+ notice, this list of conditions and the following disclaimer.
13
+
14
+ 2. Redistributions in binary form must reproduce the above
15
+ copyright notice, this list of conditions and the following
16
+ disclaimer in the documentation and/or other materials provided
17
+ with the distribution.
18
+
19
+ 3. The names of the contributors may not be used to endorse or
20
+ promote products derived from this software without specific
21
+ prior written permission.
22
+
23
+ THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY THE COPYRIGHT HOLDERS AND
24
+ CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT
25
+ NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
27
+ OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
29
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
30
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
31
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
32
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
33
+ SOFTWARE AND DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
34
+ DAMAGE.
@@ -0,0 +1,4 @@
1
+ graft test
2
+ # Build artifacts not meant for source distribution
3
+ global-exclude *.pyc
4
+ global-exclude __pycache__
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.1
2
+ Name: coco-visualize
3
+ Version: 0.1.0rc2
4
+ Summary: Standalone COCO visualization toolbox
5
+ Author-email: Dimo Brockhoff <dimo.brockhoff@inria.fr>, Nikolaus Hansen <nikolaus.hansen@inria.fr>, Olaf Mersmann <olafm@p-value.net>, Tea Tušar <tea.tusar@ijs.si>
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/numbbo/coco
8
+ Project-URL: Documentation, https://numbbo.github.io/coco-doc/apidocs/cocoex/
9
+ Project-URL: Issues, https://github.com/numbbo/coco/issues
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: License :: OSI Approved :: BSD License
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: Implementation :: CPython
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ License-File: AUTHORS
21
+ Requires-Dist: numpy>=2.0
22
+ Requires-Dist: polars>=0.20
23
+ Requires-Dist: matplotlib>=3.7
24
+ Requires-Dist: scipy>=1.14.0
25
+
26
+ <h1 align="center">
27
+ <img src="https://raw.githubusercontent.com/numbbo/coco-visualize/main/cocoviz.svg" width="400">
28
+ </h1><br>
29
+
30
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/cocoviz.svg?label=PyPI%20downloads)](https://pypi.org/project/cocoviz/)
31
+ [![GitHub Issues](https://img.shields.io/github/issues/numbbo/cocoviz)](https://github.com/numbbo/cocoviz/issues)
32
+ ![GitHub Repo stars](https://img.shields.io/github/stars/numbbo/cocoviz?style=flat)
33
+
34
+ `cocoviz` is a minimalist visualization toolkit for benchmark experiments.
35
+
36
+ - **Website:** https://numbbo.github.io
37
+ - **Source code:** https://github.com/numbbo/cocoviz/
38
+ - **Contributing:** https://github.com/numbbo/cocoviz/pulls
39
+ - **Bug reports:** https://github.com/numbbo/cocoviz/issues
@@ -0,0 +1,14 @@
1
+ <h1 align="center">
2
+ <img src="https://raw.githubusercontent.com/numbbo/coco-visualize/main/cocoviz.svg" width="400">
3
+ </h1><br>
4
+
5
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/cocoviz.svg?label=PyPI%20downloads)](https://pypi.org/project/cocoviz/)
6
+ [![GitHub Issues](https://img.shields.io/github/issues/numbbo/cocoviz)](https://github.com/numbbo/cocoviz/issues)
7
+ ![GitHub Repo stars](https://img.shields.io/github/stars/numbbo/cocoviz?style=flat)
8
+
9
+ `cocoviz` is a minimalist visualization toolkit for benchmark experiments.
10
+
11
+ - **Website:** https://numbbo.github.io
12
+ - **Source code:** https://github.com/numbbo/cocoviz/
13
+ - **Contributing:** https://github.com/numbbo/cocoviz/pulls
14
+ - **Bug reports:** https://github.com/numbbo/cocoviz/issues
@@ -0,0 +1,192 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Generator: Adobe Illustrator 28.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+
4
+ <svg
5
+ version="1.1"
6
+ id="Layer_1"
7
+ x="0px"
8
+ y="0px"
9
+ viewBox="0 0 130 130"
10
+ xml:space="preserve"
11
+ sodipodi:docname="cocoviz.svg"
12
+ width="130"
13
+ height="130"
14
+ inkscape:version="1.3.2 (091e20e, 2023-11-25, custom)"
15
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
16
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ xmlns:svg="http://www.w3.org/2000/svg"><defs
19
+ id="defs16" /><sodipodi:namedview
20
+ id="namedview16"
21
+ pagecolor="#ffffff"
22
+ bordercolor="#000000"
23
+ borderopacity="0.25"
24
+ inkscape:showpageshadow="2"
25
+ inkscape:pageopacity="0.0"
26
+ inkscape:pagecheckerboard="0"
27
+ inkscape:deskcolor="#d1d1d1"
28
+ inkscape:zoom="6.1617162"
29
+ inkscape:cx="55.828602"
30
+ inkscape:cy="55.909748"
31
+ inkscape:window-width="3840"
32
+ inkscape:window-height="2054"
33
+ inkscape:window-x="-11"
34
+ inkscape:window-y="-11"
35
+ inkscape:window-maximized="1"
36
+ inkscape:current-layer="Layer_1" />
37
+ <style
38
+ type="text/css"
39
+ id="style1">
40
+ .st0{fill:#4E763B;}
41
+ .st1{fill:#FFFFFF;stroke:#FFFFFF;stroke-miterlimit:10;}
42
+ .st2{fill:#FFFFFF;}
43
+ .st3{fill:#FFFFFF;stroke:#4E763B;stroke-miterlimit:10;}
44
+ </style>
45
+ <g
46
+ id="g16"
47
+ transform="translate(-129.5,-86.49)">
48
+ <path
49
+ class="st0"
50
+ d="m 213.5,207.41 h -38 c -20.39,0 -36.92,-16.53 -36.92,-36.92 v -38 c 0,-20.39 16.53,-36.92 36.92,-36.92 h 38 c 20.39,0 36.92,16.53 36.92,36.92 v 38 c -0.01,20.4 -16.53,36.92 -36.92,36.92 z"
51
+ id="path1" />
52
+ <g
53
+ id="g13">
54
+ <line
55
+ class="st1"
56
+ x1="157.3"
57
+ y1="159.42"
58
+ x2="174.8"
59
+ y2="145.22"
60
+ id="line1" />
61
+ <line
62
+ class="st1"
63
+ x1="157.21001"
64
+ y1="159.42"
65
+ x2="152.95"
66
+ y2="181.55"
67
+ id="line2" />
68
+ <line
69
+ class="st1"
70
+ x1="197.09"
71
+ y1="142.25999"
72
+ x2="214.59"
73
+ y2="128.06"
74
+ id="line3" />
75
+ <circle
76
+ class="st2"
77
+ cx="153.59"
78
+ cy="178.24001"
79
+ r="3.52"
80
+ id="circle3" />
81
+ <circle
82
+ class="st2"
83
+ cx="235.49001"
84
+ cy="126.91"
85
+ r="3.52"
86
+ id="circle4" />
87
+ <line
88
+ class="st1"
89
+ x1="174.8"
90
+ y1="145.27"
91
+ x2="197.11"
92
+ y2="142.03999"
93
+ id="line4" />
94
+ <line
95
+ class="st1"
96
+ x1="214.59"
97
+ y1="128.06"
98
+ x2="237.09"
99
+ y2="126.82"
100
+ id="line5" />
101
+ <g
102
+ id="g5">
103
+ <circle
104
+ class="st3"
105
+ cx="157.3"
106
+ cy="159.42"
107
+ r="7.2399998"
108
+ id="circle5" />
109
+ <path
110
+ class="st0"
111
+ d="m 160.05,159.42 c 0,1.52 -1.23,2.75 -2.75,2.75 -1.52,0 -2.75,-1.23 -2.75,-2.75 0,-1.52 1.23,-2.75 2.75,-2.75 0.91,0 1.72,0.44 2.22,1.13 0.33,0.45 0.53,1.01 0.53,1.62 z"
112
+ id="path5" />
113
+ </g>
114
+ <g
115
+ id="g7">
116
+ <path
117
+ class="st0"
118
+ d="m 160.07,159.42 c 0,1.53 -1.24,2.76 -2.76,2.76 -1.53,0 -2.76,-1.24 -2.76,-2.76 0,-1.53 1.24,-2.76 2.76,-2.76 0.92,0 1.73,0.45 2.23,1.14 0.33,0.45 0.53,1.01 0.53,1.62 z"
119
+ id="path6" />
120
+ <path
121
+ class="st0"
122
+ d="m 159.15,157.93 4.49,-2.68 3.58,9.24 -7.83,-3.27 c 0.25,-0.56 0.77,-1.9 0.59,-2.5 -0.13,-0.42 -0.42,-0.45 -0.83,-0.79 z"
123
+ id="path7" />
124
+ </g>
125
+ <g
126
+ id="g8">
127
+ <circle
128
+ class="st3"
129
+ cx="174.8"
130
+ cy="145.27"
131
+ r="7.2399998"
132
+ id="circle7" />
133
+ <path
134
+ class="st0"
135
+ d="m 177.55,145.27 c 0,1.52 -1.23,2.75 -2.75,2.75 -1.52,0 -2.75,-1.23 -2.75,-2.75 0,-1.52 1.23,-2.75 2.75,-2.75 0.91,0 1.72,0.44 2.22,1.13 0.33,0.46 0.53,1.02 0.53,1.62 z"
136
+ id="path8" />
137
+ </g>
138
+ <g
139
+ id="g9">
140
+ <circle
141
+ class="st3"
142
+ cx="197.11"
143
+ cy="142.03999"
144
+ r="7.2399998"
145
+ id="circle8" />
146
+ <path
147
+ class="st0"
148
+ d="m 199.85,142.04 c 0,1.52 -1.23,2.75 -2.75,2.75 -1.52,0 -2.75,-1.23 -2.75,-2.75 0,-1.52 1.23,-2.75 2.75,-2.75 0.91,0 1.72,0.44 2.22,1.13 0.33,0.46 0.53,1.02 0.53,1.62 z"
149
+ id="path9" />
150
+ </g>
151
+ <g
152
+ id="g11">
153
+ <path
154
+ class="st0"
155
+ d="m 199.87,142.04 c 0,1.53 -1.24,2.76 -2.76,2.76 -1.53,0 -2.76,-1.24 -2.76,-2.76 0,-1.53 1.24,-2.76 2.76,-2.76 0.92,0 1.73,0.45 2.23,1.14 0.33,0.45 0.53,1.01 0.53,1.62 z"
156
+ id="path10" />
157
+ <path
158
+ class="st0"
159
+ d="m 198.95,140.55 4.49,-2.68 3.58,9.24 -7.83,-3.27 c 0.25,-0.56 0.77,-1.9 0.59,-2.5 -0.13,-0.42 -0.42,-0.44 -0.83,-0.79 z"
160
+ id="path11" />
161
+ </g>
162
+ <g
163
+ id="g12">
164
+ <circle
165
+ class="st3"
166
+ cx="214.59"
167
+ cy="128.06"
168
+ r="7.2399998"
169
+ id="circle11" />
170
+ <path
171
+ class="st0"
172
+ d="m 217.34,128.06 c 0,1.52 -1.23,2.75 -2.75,2.75 -1.52,0 -2.75,-1.23 -2.75,-2.75 0,-1.52 1.23,-2.75 2.75,-2.75 0.91,0 1.72,0.44 2.22,1.13 0.33,0.46 0.53,1.02 0.53,1.62 z"
173
+ id="path12" />
174
+ </g>
175
+ </g>
176
+ <g
177
+ id="g15">
178
+ <path
179
+ class="st2"
180
+ d="m 213.94,181.76 -3.46,-12.78 h 3.55 l 1.89,8.73 1.91,-8.73 h 3.4 l -3.49,12.78 z"
181
+ id="path13" />
182
+ <path
183
+ class="st2"
184
+ d="m 224.13,181.76 v -12.78 h 3.37 v 12.78 z"
185
+ id="path14" />
186
+ <path
187
+ class="st2"
188
+ d="m 230.7,181.76 v -2.41 l 4.32,-7.67 h -4 v -2.7 h 7.78 v 2.43 l -4.25,7.63 h 4.47 v 2.72 z"
189
+ id="path15" />
190
+ </g>
191
+ </g>
192
+ </svg>
@@ -0,0 +1,130 @@
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": null,
6
+ "id": "7a828d09-1ddf-43c9-b4d3-4f5d6f8e7fbd",
7
+ "metadata": {},
8
+ "outputs": [],
9
+ "source": [
10
+ "import pandas as pd\n",
11
+ "import matplotlib.pyplot as plt\n",
12
+ "\n",
13
+ "from pathlib import Path\n",
14
+ "from cocoviz import ProblemDescription, Result, ResultSet, Indicator, rtpplot\n",
15
+ "\n",
16
+ "DATA_DIR = Path(\"data/\")"
17
+ ]
18
+ },
19
+ {
20
+ "cell_type": "markdown",
21
+ "id": "bb372e9b-88a0-418f-8e8f-99ba0e6906b9",
22
+ "metadata": {},
23
+ "source": [
24
+ "# Read demo results"
25
+ ]
26
+ },
27
+ {
28
+ "cell_type": "code",
29
+ "execution_count": null,
30
+ "id": "4e2ec828-3454-4d30-aa8e-5009af42e948",
31
+ "metadata": {},
32
+ "outputs": [],
33
+ "source": [
34
+ "results = ResultSet()\n",
35
+ "for result_file in DATA_DIR.glob(\"*.csv\"):\n",
36
+ " # Read CSV file\n",
37
+ " data = pd.read_csv(result_file)\n",
38
+ "\n",
39
+ " # Add artifical performance indicator that must be minimized\n",
40
+ " data[\"neg_hv\"] = -data[\"Hypervolume\"]\n",
41
+ " \n",
42
+ " # Decode algorithm name and problem description from file name\n",
43
+ " algorithm, problem_class, n_dim, run = result_file.stem.split(\"_\")\n",
44
+ " n_dim = int(n_dim.split(\"=\")[1])\n",
45
+ " run = int(run.split(\"=\")[1]) \n",
46
+ " problem = ProblemDescription(problem_class, 1, n_dim, 2)\n",
47
+ "\n",
48
+ " # Store results in result set\n",
49
+ " results.append(Result(algorithm, problem, data, \"Evaluations\"))"
50
+ ]
51
+ },
52
+ {
53
+ "cell_type": "markdown",
54
+ "id": "440a95d7-aa07-41dd-a2ff-3a3ba0eba993",
55
+ "metadata": {},
56
+ "source": [
57
+ "# Create a runtime profile plot each problem in the result set"
58
+ ]
59
+ },
60
+ {
61
+ "cell_type": "code",
62
+ "execution_count": null,
63
+ "id": "17f1ebd9-c24f-4459-9407-d564db0582ef",
64
+ "metadata": {},
65
+ "outputs": [],
66
+ "source": [
67
+ "number_of_targets = 101\n",
68
+ "\n",
69
+ "INDICATOR = [\n",
70
+ " Indicator(\"Hypervolume\", larger_is_better=True),\n",
71
+ " Indicator(\"neg_hv\", larger_is_better=False) \n",
72
+ "]\n",
73
+ "\n",
74
+ "nvar = len(results.number_of_variables)\n",
75
+ "fig, axes = plt.subplots(nvar, 2, figsize=(12, 12))\n",
76
+ "for axrow, (d, result_subset) in zip(axes, results.by_number_of_variables()):\n",
77
+ " for ax, ind in zip(axrow, INDICATOR):\n",
78
+ " rtpplot(result_subset, ind, number_of_targets=number_of_targets, ax=ax)\n",
79
+ " ax.set_title(f\"{ind.name} / {d} decision variables\")"
80
+ ]
81
+ },
82
+ {
83
+ "cell_type": "markdown",
84
+ "id": "7a57f0bf-56dd-4695-9b99-00b769917913",
85
+ "metadata": {},
86
+ "source": [
87
+ "Aggregating over all results will throw an exception."
88
+ ]
89
+ },
90
+ {
91
+ "cell_type": "code",
92
+ "execution_count": null,
93
+ "id": "d2f34dda-f670-42df-a61d-29874b68cc63",
94
+ "metadata": {},
95
+ "outputs": [],
96
+ "source": [
97
+ "rtpplot(results, indicator, number_of_targets=number_of_targets)"
98
+ ]
99
+ },
100
+ {
101
+ "cell_type": "code",
102
+ "execution_count": null,
103
+ "id": "83a0de68-ee00-4b16-a259-aac98b360877",
104
+ "metadata": {},
105
+ "outputs": [],
106
+ "source": []
107
+ }
108
+ ],
109
+ "metadata": {
110
+ "kernelspec": {
111
+ "display_name": "Python 3 (ipykernel)",
112
+ "language": "python",
113
+ "name": "python3"
114
+ },
115
+ "language_info": {
116
+ "codemirror_mode": {
117
+ "name": "ipython",
118
+ "version": 3
119
+ },
120
+ "file_extension": ".py",
121
+ "mimetype": "text/x-python",
122
+ "name": "python",
123
+ "nbconvert_exporter": "python",
124
+ "pygments_lexer": "ipython3",
125
+ "version": "3.12.4"
126
+ }
127
+ },
128
+ "nbformat": 4,
129
+ "nbformat_minor": 5
130
+ }
@@ -0,0 +1,59 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools >= 67.0",
4
+ "setuptools-scm >= 8",
5
+ "wheel",
6
+ ]
7
+ build-backend = "setuptools.build_meta"
8
+
9
+ [project]
10
+ name = "coco-visualize"
11
+ authors = [
12
+ {name = "Dimo Brockhoff", email = "dimo.brockhoff@inria.fr" },
13
+ {name = "Nikolaus Hansen", email = "nikolaus.hansen@inria.fr" },
14
+ {name = "Olaf Mersmann", email = "olafm@p-value.net"},
15
+ {name = "Tea Tušar", email = "tea.tusar@ijs.si" },
16
+ ]
17
+ description = 'Standalone COCO visualization toolbox'
18
+ readme = "README.md"
19
+ requires-python = ">=3.10"
20
+ license = {text = "BSD-3-Clause"}
21
+ classifiers = [
22
+ "Development Status :: 4 - Beta",
23
+ "License :: OSI Approved :: BSD License",
24
+ "Programming Language :: Python",
25
+ "Programming Language :: Python :: 3.10",
26
+ "Programming Language :: Python :: 3.11",
27
+ "Programming Language :: Python :: 3.12",
28
+ "Programming Language :: Python :: Implementation :: CPython",
29
+ ]
30
+ dependencies = [
31
+ "numpy >= 2.0",
32
+ "polars >= 0.20",
33
+ "matplotlib >= 3.7",
34
+ "scipy >= 1.14.0"
35
+ ]
36
+ dynamic = ["version"]
37
+
38
+ [tool.setuptools_scm]
39
+ version_file = "src/cocoviz/_version.py"
40
+
41
+ [tool.setuptools.packages.find]
42
+ where = ["src"]
43
+
44
+ [tool.ruff]
45
+ line-length = 120
46
+
47
+ [tool.ruff.format]
48
+ quote-style = "double"
49
+ docstring-code-format = true
50
+ docstring-code-line-length = 80
51
+
52
+ [tool.pytest]
53
+ log_cli = true
54
+ addopts = "--doctest-modules"
55
+
56
+ [project.urls]
57
+ Homepage = "https://github.com/numbbo/coco"
58
+ Documentation = "https://numbbo.github.io/coco-doc/apidocs/cocoex/"
59
+ Issues = "https://github.com/numbbo/coco/issues"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.1
2
+ Name: coco-visualize
3
+ Version: 0.1.0rc2
4
+ Summary: Standalone COCO visualization toolbox
5
+ Author-email: Dimo Brockhoff <dimo.brockhoff@inria.fr>, Nikolaus Hansen <nikolaus.hansen@inria.fr>, Olaf Mersmann <olafm@p-value.net>, Tea Tušar <tea.tusar@ijs.si>
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/numbbo/coco
8
+ Project-URL: Documentation, https://numbbo.github.io/coco-doc/apidocs/cocoex/
9
+ Project-URL: Issues, https://github.com/numbbo/coco/issues
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: License :: OSI Approved :: BSD License
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: Implementation :: CPython
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ License-File: AUTHORS
21
+ Requires-Dist: numpy>=2.0
22
+ Requires-Dist: polars>=0.20
23
+ Requires-Dist: matplotlib>=3.7
24
+ Requires-Dist: scipy>=1.14.0
25
+
26
+ <h1 align="center">
27
+ <img src="https://raw.githubusercontent.com/numbbo/coco-visualize/main/cocoviz.svg" width="400">
28
+ </h1><br>
29
+
30
+ [![PyPI Downloads](https://img.shields.io/pypi/dm/cocoviz.svg?label=PyPI%20downloads)](https://pypi.org/project/cocoviz/)
31
+ [![GitHub Issues](https://img.shields.io/github/issues/numbbo/cocoviz)](https://github.com/numbbo/cocoviz/issues)
32
+ ![GitHub Repo stars](https://img.shields.io/github/stars/numbbo/cocoviz?style=flat)
33
+
34
+ `cocoviz` is a minimalist visualization toolkit for benchmark experiments.
35
+
36
+ - **Website:** https://numbbo.github.io
37
+ - **Source code:** https://github.com/numbbo/cocoviz/
38
+ - **Contributing:** https://github.com/numbbo/cocoviz/pulls
39
+ - **Bug reports:** https://github.com/numbbo/cocoviz/issues
@@ -0,0 +1,28 @@
1
+ .gitignore
2
+ AUTHORS
3
+ LICENSE
4
+ MANIFEST.in
5
+ README.md
6
+ cocoviz.svg
7
+ example.ipynb
8
+ pyproject.toml
9
+ .github/workflows/build-wheel.yml
10
+ .github/workflows/test.yml
11
+ src/coco_visualize.egg-info/PKG-INFO
12
+ src/coco_visualize.egg-info/SOURCES.txt
13
+ src/coco_visualize.egg-info/dependency_links.txt
14
+ src/coco_visualize.egg-info/requires.txt
15
+ src/coco_visualize.egg-info/top_level.txt
16
+ src/cocoviz/__init__.py
17
+ src/cocoviz/_typing.py
18
+ src/cocoviz/_version.py
19
+ src/cocoviz/exceptions.py
20
+ src/cocoviz/indicator.py
21
+ src/cocoviz/plot.py
22
+ src/cocoviz/result.py
23
+ src/cocoviz/rtp.py
24
+ src/cocoviz/targets.py
25
+ src/cocoviz/utilities.py
26
+ tests/test_result.py
27
+ tests/test_resultset.py
28
+ tests/test_runtime_profile.py
@@ -0,0 +1,4 @@
1
+ numpy>=2.0
2
+ polars>=0.20
3
+ matplotlib>=3.7
4
+ scipy>=1.14.0
@@ -0,0 +1,6 @@
1
+ from ._version import __version__ # noqa: F401
2
+ from .rtp import rtpplot, runtime_profiles
3
+ from .result import ProblemDescription, Result, ResultSet
4
+ from .indicator import Indicator
5
+
6
+ __all__ = ["ProblemDescription", "Result", "ResultSet", "Indicator", "rtpplot", "runtime_profiles"]
@@ -0,0 +1,4 @@
1
+ from os import PathLike
2
+ from typing import Union
3
+
4
+ FilePath = Union[str, "PathLike[str]"]