seamaze 0.0.1__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.
- seamaze-0.0.1/LICENSE +22 -0
- seamaze-0.0.1/PKG-INFO +150 -0
- seamaze-0.0.1/README.md +117 -0
- seamaze-0.0.1/pyproject.toml +49 -0
- seamaze-0.0.1/seamaze/__init__.py +16 -0
- seamaze-0.0.1/seamaze/cmaes/__init__.py +13 -0
- seamaze-0.0.1/seamaze/cmaes/_cmaes.py +904 -0
- seamaze-0.0.1/seamaze/dlrcmaes/__init__.py +16 -0
- seamaze-0.0.1/seamaze/dlrcmaes/_low_rank_integrator.py +908 -0
- seamaze-0.0.1/seamaze/dlrcmaes/_lrcmaes.py +817 -0
seamaze-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) [year] [fullname]
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
seamaze-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: seamaze
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A python library for classical and dynamical low-rank CMA-ES.
|
|
5
|
+
Home-page: https://github.com/pyanno4rt/seamaze
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: python,optimization,black-box-optimization,evolution-strategies,cma-es,dynamical-low-rank
|
|
8
|
+
Author: Tim Ortkamp
|
|
9
|
+
Author-email: tim.ortkamp@gmx.de
|
|
10
|
+
Requires-Python: >=3.11,<4.0
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Education
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Topic :: Education
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
23
|
+
Requires-Dist: matplotlib (>=3.10.8)
|
|
24
|
+
Requires-Dist: numba (>=0.65.0)
|
|
25
|
+
Requires-Dist: numpy (>=2.4.4)
|
|
26
|
+
Requires-Dist: scipy (>=1.17.1)
|
|
27
|
+
Requires-Dist: seaborn (>=0.13.2)
|
|
28
|
+
Project-URL: Bug Tracker, https://github.com/pyanno4rt/seamaze/issues
|
|
29
|
+
Project-URL: Documentation, https://seamaze.readthedocs.io/en/latest/
|
|
30
|
+
Project-URL: Repository, https://github.com/pyanno4rt/seamaze
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
32
|
+
|
|
33
|
+
[](https://pypi.org/project/seamaze/)
|
|
34
|
+

|
|
35
|
+
[](https://coveralls.io/github/pyanno4rt/seamaze)
|
|
36
|
+

|
|
37
|
+

|
|
38
|
+
[](https://github.com/pyanno4rt/seamaze/releases)
|
|
39
|
+

|
|
40
|
+
[](https://github.com/pyanno4rt/seamaze/releases)
|
|
41
|
+
[](https://github.com/pyanno4rt/seamaze/discussions)
|
|
42
|
+
[](https://github.com/pyanno4rt/seamaze/issues)
|
|
43
|
+
[](https://github.com/pyanno4rt/seamaze/graphs/contributors)
|
|
44
|
+
[](https://opensource.org/licenses/MIT)
|
|
45
|
+
|
|
46
|
+
<p align="center">
|
|
47
|
+
<picture>
|
|
48
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/pyanno4rt/seamaze/blob/develop/logo/logo_white.png?raw=true">
|
|
49
|
+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/pyanno4rt/seamaze/blob/develop/logo/logo_black.png?raw=true">
|
|
50
|
+
<img alt="logo" src="https://github.com/pyanno4rt/seamaze/blob/develop/logo/logo_white.png?raw=true" width="600">
|
|
51
|
+
</picture>
|
|
52
|
+
</p>
|
|
53
|
+
|
|
54
|
+
<h3 align='center'>A Python Library for Classical and Dynamical Low-Rank CMA-ES</h3>
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
# General :earth_americas:
|
|
59
|
+
|
|
60
|
+
*seamaze* is a Python library for classical and Dynamical Low-Rank (DLR) CMA-ES variants. It is designed to navigate complex, high-dimensional fitness landscapes by iteratively adapting a multivariate Gaussian search space to the objective's local topography. By leveraging DLR approximations, seamaze remains computationally efficient even on ill-conditioned or rugged black-box problems. This implementation further extends to the integration of first-order information, constraints, and robust restart mechanisms.
|
|
61
|
+
|
|
62
|
+
# Installation :computer:
|
|
63
|
+
|
|
64
|
+
### Python distribution
|
|
65
|
+
|
|
66
|
+
You can install the latest distribution via:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pip install seamaze
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Source code
|
|
73
|
+
|
|
74
|
+
You can check the latest source code via:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
git clone https://github.com/pyanno4rt/seamaze.git
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Usage
|
|
81
|
+
|
|
82
|
+
*seamaze* has two main classes which provide a classical and a dynamical low-rank CMA-ES variant:
|
|
83
|
+
|
|
84
|
+
###### Classical CMA-ES
|
|
85
|
+
|
|
86
|
+
```python
|
|
87
|
+
from seamaze.cmaes import CMAES
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
###### Dynamical low-rank CMA-ES
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
from seamaze.dlrcmaes import DLRCMAES
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Dependencies
|
|
97
|
+
|
|
98
|
+
| Name | Version |
|
|
99
|
+
| -----------------------------: | :------------------------------------ |
|
|
100
|
+
| `python` | <font size="3"> >=3.11, <4.0 </font> |
|
|
101
|
+
| `numpy` | <font size="3"> >=2.4.4 </font> |
|
|
102
|
+
| `scipy` | <font size="3"> >=1.17.1 </font> |
|
|
103
|
+
| `numba` | <font size="3"> >=0.65.0 </font> |
|
|
104
|
+
| `matplotlib` | <font size="3"> >=3.10.8 </font> |
|
|
105
|
+
| `seaborn` | <font size="3"> >=0.13.2 </font> |
|
|
106
|
+
| `pyqt5-qt5` | <font size="3"> ==5.15.2 </font> |
|
|
107
|
+
| `pyqt5` | <font size="3"> ==5.15.10 </font> |
|
|
108
|
+
| `setuptools` | <font size="3"> <81.0.0 </font> |
|
|
109
|
+
|
|
110
|
+
Moreover, we are using **Python v3.11.11** and **Spyder IDE v6.1.4** for development.
|
|
111
|
+
|
|
112
|
+
# Development :rocket:
|
|
113
|
+
|
|
114
|
+
### Important links
|
|
115
|
+
|
|
116
|
+
* [Github](https://github.com/pyanno4rt/seamaze)
|
|
117
|
+
* [PyPI](https://pypi.org/project/seamaze/)
|
|
118
|
+
* [Coveralls](https://coveralls.io/github/pyanno4rt/seamaze)
|
|
119
|
+
* [Issue tracker](https://github.com/pyanno4rt/seamaze/issues)
|
|
120
|
+
|
|
121
|
+
# Help and Support :busts_in_silhouette:
|
|
122
|
+
|
|
123
|
+
### Resources
|
|
124
|
+
|
|
125
|
+
* [Github Discussions](https://github.com/pyanno4rt/seamaze/discussions)
|
|
126
|
+
* [Github Issues](https://github.com/pyanno4rt/seamaze/issues)
|
|
127
|
+
|
|
128
|
+
### Contact
|
|
129
|
+
|
|
130
|
+
* [Github Page](https://tortka.github.io)
|
|
131
|
+
* [Mail](mailto:tim.ortkamp@gmx.de?subject=Request (seamaze))
|
|
132
|
+
* [LinkedIn](https://www.linkedin.com/in/tim-ortkamp)
|
|
133
|
+
|
|
134
|
+
### Citation
|
|
135
|
+
|
|
136
|
+
To cite *seamaze*, either use the link in the right sidebar of the Github landing page labeled "Cite this repository" or copy the short-form bib-style paragraph below:
|
|
137
|
+
|
|
138
|
+
```tex
|
|
139
|
+
@software{seamaze,
|
|
140
|
+
title = {{seamaze}: a python library for classical and dynamical low-rank CMA-ES},
|
|
141
|
+
author = {Ortkamp, Tim and Patwardhan, Chinmay and Stammer, Pia},
|
|
142
|
+
version = {0.0.1},
|
|
143
|
+
license = {MIT},
|
|
144
|
+
year = {2026},
|
|
145
|
+
publisher = {GitHub},
|
|
146
|
+
url = {https://github.com/pyanno4rt/seamaze}
|
|
147
|
+
}
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
|
seamaze-0.0.1/README.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
[](https://pypi.org/project/seamaze/)
|
|
2
|
+

|
|
3
|
+
[](https://coveralls.io/github/pyanno4rt/seamaze)
|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](https://github.com/pyanno4rt/seamaze/releases)
|
|
7
|
+

|
|
8
|
+
[](https://github.com/pyanno4rt/seamaze/releases)
|
|
9
|
+
[](https://github.com/pyanno4rt/seamaze/discussions)
|
|
10
|
+
[](https://github.com/pyanno4rt/seamaze/issues)
|
|
11
|
+
[](https://github.com/pyanno4rt/seamaze/graphs/contributors)
|
|
12
|
+
[](https://opensource.org/licenses/MIT)
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<picture>
|
|
16
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/pyanno4rt/seamaze/blob/develop/logo/logo_white.png?raw=true">
|
|
17
|
+
<source media="(prefers-color-scheme: light)" srcset="https://github.com/pyanno4rt/seamaze/blob/develop/logo/logo_black.png?raw=true">
|
|
18
|
+
<img alt="logo" src="https://github.com/pyanno4rt/seamaze/blob/develop/logo/logo_white.png?raw=true" width="600">
|
|
19
|
+
</picture>
|
|
20
|
+
</p>
|
|
21
|
+
|
|
22
|
+
<h3 align='center'>A Python Library for Classical and Dynamical Low-Rank CMA-ES</h3>
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# General :earth_americas:
|
|
27
|
+
|
|
28
|
+
*seamaze* is a Python library for classical and Dynamical Low-Rank (DLR) CMA-ES variants. It is designed to navigate complex, high-dimensional fitness landscapes by iteratively adapting a multivariate Gaussian search space to the objective's local topography. By leveraging DLR approximations, seamaze remains computationally efficient even on ill-conditioned or rugged black-box problems. This implementation further extends to the integration of first-order information, constraints, and robust restart mechanisms.
|
|
29
|
+
|
|
30
|
+
# Installation :computer:
|
|
31
|
+
|
|
32
|
+
### Python distribution
|
|
33
|
+
|
|
34
|
+
You can install the latest distribution via:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pip install seamaze
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Source code
|
|
41
|
+
|
|
42
|
+
You can check the latest source code via:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
git clone https://github.com/pyanno4rt/seamaze.git
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Usage
|
|
49
|
+
|
|
50
|
+
*seamaze* has two main classes which provide a classical and a dynamical low-rank CMA-ES variant:
|
|
51
|
+
|
|
52
|
+
###### Classical CMA-ES
|
|
53
|
+
|
|
54
|
+
```python
|
|
55
|
+
from seamaze.cmaes import CMAES
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
###### Dynamical low-rank CMA-ES
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
from seamaze.dlrcmaes import DLRCMAES
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Dependencies
|
|
65
|
+
|
|
66
|
+
| Name | Version |
|
|
67
|
+
| -----------------------------: | :------------------------------------ |
|
|
68
|
+
| `python` | <font size="3"> >=3.11, <4.0 </font> |
|
|
69
|
+
| `numpy` | <font size="3"> >=2.4.4 </font> |
|
|
70
|
+
| `scipy` | <font size="3"> >=1.17.1 </font> |
|
|
71
|
+
| `numba` | <font size="3"> >=0.65.0 </font> |
|
|
72
|
+
| `matplotlib` | <font size="3"> >=3.10.8 </font> |
|
|
73
|
+
| `seaborn` | <font size="3"> >=0.13.2 </font> |
|
|
74
|
+
| `pyqt5-qt5` | <font size="3"> ==5.15.2 </font> |
|
|
75
|
+
| `pyqt5` | <font size="3"> ==5.15.10 </font> |
|
|
76
|
+
| `setuptools` | <font size="3"> <81.0.0 </font> |
|
|
77
|
+
|
|
78
|
+
Moreover, we are using **Python v3.11.11** and **Spyder IDE v6.1.4** for development.
|
|
79
|
+
|
|
80
|
+
# Development :rocket:
|
|
81
|
+
|
|
82
|
+
### Important links
|
|
83
|
+
|
|
84
|
+
* [Github](https://github.com/pyanno4rt/seamaze)
|
|
85
|
+
* [PyPI](https://pypi.org/project/seamaze/)
|
|
86
|
+
* [Coveralls](https://coveralls.io/github/pyanno4rt/seamaze)
|
|
87
|
+
* [Issue tracker](https://github.com/pyanno4rt/seamaze/issues)
|
|
88
|
+
|
|
89
|
+
# Help and Support :busts_in_silhouette:
|
|
90
|
+
|
|
91
|
+
### Resources
|
|
92
|
+
|
|
93
|
+
* [Github Discussions](https://github.com/pyanno4rt/seamaze/discussions)
|
|
94
|
+
* [Github Issues](https://github.com/pyanno4rt/seamaze/issues)
|
|
95
|
+
|
|
96
|
+
### Contact
|
|
97
|
+
|
|
98
|
+
* [Github Page](https://tortka.github.io)
|
|
99
|
+
* [Mail](mailto:tim.ortkamp@gmx.de?subject=Request (seamaze))
|
|
100
|
+
* [LinkedIn](https://www.linkedin.com/in/tim-ortkamp)
|
|
101
|
+
|
|
102
|
+
### Citation
|
|
103
|
+
|
|
104
|
+
To cite *seamaze*, either use the link in the right sidebar of the Github landing page labeled "Cite this repository" or copy the short-form bib-style paragraph below:
|
|
105
|
+
|
|
106
|
+
```tex
|
|
107
|
+
@software{seamaze,
|
|
108
|
+
title = {{seamaze}: a python library for classical and dynamical low-rank CMA-ES},
|
|
109
|
+
author = {Ortkamp, Tim and Patwardhan, Chinmay and Stammer, Pia},
|
|
110
|
+
version = {0.0.1},
|
|
111
|
+
license = {MIT},
|
|
112
|
+
year = {2026},
|
|
113
|
+
publisher = {GitHub},
|
|
114
|
+
url = {https://github.com/pyanno4rt/seamaze}
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[tool.poetry]
|
|
2
|
+
name = "seamaze"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
description = "A python library for classical and dynamical low-rank CMA-ES."
|
|
5
|
+
license = "MIT"
|
|
6
|
+
authors = [ "Tim Ortkamp <tim.ortkamp@gmx.de>" ]
|
|
7
|
+
readme = "README.md"
|
|
8
|
+
repository = "https://github.com/pyanno4rt/seamaze"
|
|
9
|
+
documentation = "https://seamaze.readthedocs.io/en/latest/"
|
|
10
|
+
keywords = [ "python", "optimization", "black-box-optimization", "evolution-strategies", "cma-es", "dynamical-low-rank" ]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
|
+
"Intended Audience :: Developers",
|
|
14
|
+
"Intended Audience :: Education",
|
|
15
|
+
"Intended Audience :: Science/Research",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Topic :: Education",
|
|
19
|
+
"Topic :: Scientific/Engineering",
|
|
20
|
+
"Topic :: Scientific/Engineering :: Mathematics",
|
|
21
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
22
|
+
"Topic :: Software Development :: Libraries"
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[[tool.poetry.packages]]
|
|
26
|
+
include = "seamaze"
|
|
27
|
+
|
|
28
|
+
[tool.poetry.dependencies]
|
|
29
|
+
python = ">=3.11, <4.0"
|
|
30
|
+
numpy = ">=2.4.4"
|
|
31
|
+
scipy = ">=1.17.1"
|
|
32
|
+
numba = ">=0.65.0"
|
|
33
|
+
matplotlib = ">=3.10.8"
|
|
34
|
+
seaborn = ">=0.13.2"
|
|
35
|
+
|
|
36
|
+
[tool.poetry.group.dev.dependencies]
|
|
37
|
+
pytest = ">=9.0.3"
|
|
38
|
+
pytest-cov = ">=7.1.0"
|
|
39
|
+
coveralls = ">=4.1.0"
|
|
40
|
+
|
|
41
|
+
[tool.poetry.urls]
|
|
42
|
+
"Bug Tracker" = "https://github.com/pyanno4rt/seamaze/issues"
|
|
43
|
+
|
|
44
|
+
[tool.coverage.run]
|
|
45
|
+
omit = []
|
|
46
|
+
|
|
47
|
+
[build-system]
|
|
48
|
+
requires = [ "poetry-core" ]
|
|
49
|
+
build-backend = "poetry.core.masonry.api"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
seamaze: a python library for classical and dynamical low-rank CMA-ES variants.
|
|
3
|
+
|
|
4
|
+
==================================================================
|
|
5
|
+
|
|
6
|
+
seamaze is a Python library for classical and Dynamical Low-Rank (DLR) CMA-ES variants. It is designed to navigate complex, high-dimensional fitness landscapes by iteratively adapting a multivariate Gaussian search space to the objective's local topography. By leveraging DLR approximations, seamaze remains computationally efficient even on ill-conditioned or rugged black-box problems. This implementation further extends to the integration of first-order information, constraints, and robust restart mechanisms.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
# Author: Tim Ortkamp, Chinmay Patwardhan, Pia Stammer
|
|
10
|
+
|
|
11
|
+
from seamaze import cmaes, dlrcmaes, visualization
|
|
12
|
+
|
|
13
|
+
__all__ = [
|
|
14
|
+
'cmaes',
|
|
15
|
+
'dlrcmaes',
|
|
16
|
+
'visualization']
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Classical covariance matrix adaptation evolution strategy (CMA-ES) module.
|
|
3
|
+
|
|
4
|
+
==================================================================
|
|
5
|
+
|
|
6
|
+
This module aims to provide methods and classes for classical CMA-ES solvers.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
# Author: Tim Ortkamp, Chinmay Patwardhan, Pia Stammer
|
|
10
|
+
|
|
11
|
+
from seamaze.cmaes._cmaes import CMAES
|
|
12
|
+
|
|
13
|
+
__all__ = ['CMAES']
|