x-neat 0.0.3__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.

Potentially problematic release.


This version of x-neat might be problematic. Click here for more details.

@@ -0,0 +1,210 @@
1
+ recorded-populations/
2
+ population.json
3
+
4
+ .DS_Store
5
+ recordings/
6
+ neat_nim
7
+ tests/nim_test_neat
8
+
9
+ # Nim related
10
+ nimcache/
11
+ nimblecache/
12
+ htmldocs/
13
+
14
+ # Byte-compiled / optimized / DLL files
15
+ __pycache__/
16
+ *.py[cod]
17
+ *$py.class
18
+
19
+ # C extensions
20
+ *.so
21
+
22
+ # Distribution / packaging
23
+ .Python
24
+ build/
25
+ develop-eggs/
26
+ dist/
27
+ downloads/
28
+ eggs/
29
+ .eggs/
30
+ lib/
31
+ lib64/
32
+ parts/
33
+ sdist/
34
+ var/
35
+ wheels/
36
+ share/python-wheels/
37
+ *.egg-info/
38
+ .installed.cfg
39
+ *.egg
40
+ MANIFEST
41
+
42
+ # PyInstaller
43
+ # Usually these files are written by a python script from a template
44
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
45
+ *.manifest
46
+ *.spec
47
+
48
+ # Installer logs
49
+ pip-log.txt
50
+ pip-delete-this-directory.txt
51
+
52
+ # Unit test / coverage reports
53
+ htmlcov/
54
+ .tox/
55
+ .nox/
56
+ .coverage
57
+ .coverage.*
58
+ .cache
59
+ nosetests.xml
60
+ coverage.xml
61
+ *.cover
62
+ *.py,cover
63
+ .hypothesis/
64
+ .pytest_cache/
65
+ cover/
66
+
67
+ # Translations
68
+ *.mo
69
+ *.pot
70
+
71
+ # Django stuff:
72
+ *.log
73
+ local_settings.py
74
+ db.sqlite3
75
+ db.sqlite3-journal
76
+
77
+ # Flask stuff:
78
+ instance/
79
+ .webassets-cache
80
+
81
+ # Scrapy stuff:
82
+ .scrapy
83
+
84
+ # Sphinx documentation
85
+ docs/_build/
86
+
87
+ # PyBuilder
88
+ .pybuilder/
89
+ target/
90
+
91
+ # Jupyter Notebook
92
+ .ipynb_checkpoints
93
+
94
+ # IPython
95
+ profile_default/
96
+ ipython_config.py
97
+
98
+ # pyenv
99
+ # For a library or package, you might want to ignore these files since the code is
100
+ # intended to run in multiple environments; otherwise, check them in:
101
+ # .python-version
102
+
103
+ # pipenv
104
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
105
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
106
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
107
+ # install all needed dependencies.
108
+ #Pipfile.lock
109
+
110
+ # UV
111
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
112
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
113
+ # commonly ignored for libraries.
114
+ #uv.lock
115
+
116
+ # poetry
117
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
118
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
119
+ # commonly ignored for libraries.
120
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
121
+ #poetry.lock
122
+
123
+ # pdm
124
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
125
+ #pdm.lock
126
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
127
+ # in version control.
128
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
129
+ .pdm.toml
130
+ .pdm-python
131
+ .pdm-build/
132
+
133
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
134
+ __pypackages__/
135
+
136
+ # Celery stuff
137
+ celerybeat-schedule
138
+ celerybeat.pid
139
+
140
+ # SageMath parsed files
141
+ *.sage.py
142
+
143
+ # Environments
144
+ .env
145
+ .venv
146
+ env/
147
+ venv/
148
+ ENV/
149
+ env.bak/
150
+ venv.bak/
151
+
152
+ # Spyder project settings
153
+ .spyderproject
154
+ .spyproject
155
+
156
+ # Rope project settings
157
+ .ropeproject
158
+
159
+ # mkdocs documentation
160
+ /site
161
+
162
+ # mypy
163
+ .mypy_cache/
164
+ .dmypy.json
165
+ dmypy.json
166
+
167
+ # Pyre type checker
168
+ .pyre/
169
+
170
+ # pytype static type analyzer
171
+ .pytype/
172
+
173
+ # Cython debug symbols
174
+ cython_debug/
175
+
176
+ # PyCharm
177
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
178
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
179
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
180
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
181
+ #.idea/
182
+
183
+ # Abstra
184
+ # Abstra is an AI-powered process automation framework.
185
+ # Ignore directories containing user credentials, local state, and settings.
186
+ # Learn more at https://abstra.io/docs
187
+ .abstra/
188
+
189
+ # Visual Studio Code
190
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
191
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
192
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
193
+ # you could uncomment the following to ignore the enitre vscode folder
194
+ # .vscode/
195
+
196
+ # Ruff stuff:
197
+ .ruff_cache/
198
+
199
+ # PyPI configuration file
200
+ .pypirc
201
+
202
+ # Cursor
203
+ # Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
204
+ # exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
205
+ # refer to https://docs.cursor.com/context/ignore-files
206
+ .cursorignore
207
+ .cursorindexingignore
208
+ nimble.develop
209
+ nimble.paths
210
+ nimbledeps
x_neat-0.0.3/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Phil Wang
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.
@@ -0,0 +1,12 @@
1
+ # Only ship the package, pyproject, readme, and nim sources
2
+ include pyproject.toml
3
+ include README.md
4
+ include .gitignore
5
+ include neat/neat_nim.nim
6
+
7
+ prune tests
8
+ prune nim-extensions
9
+ exclude setup.py
10
+ exclude setup.cfg
11
+ global-exclude __pycache__/*
12
+ global-exclude *.py[cod]
x_neat-0.0.3/PKG-INFO ADDED
@@ -0,0 +1,182 @@
1
+ Metadata-Version: 2.4
2
+ Name: x-neat
3
+ Version: 0.0.3
4
+ Summary: NEAT
5
+ Author-email: Phil Wang <lucidrains@gmail.com>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Phil Wang
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Project-URL: Homepage, https://pypi.org/project/x-neat/
29
+ Project-URL: Repository, https://github.com/lucidrains/neat
30
+ Keywords: artificial intelligence,deep learning,neuroevolutionary algorithms
31
+ Classifier: Development Status :: 4 - Beta
32
+ Classifier: Intended Audience :: Developers
33
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
34
+ Classifier: License :: OSI Approved :: MIT License
35
+ Classifier: Programming Language :: Python :: 3.9
36
+ Requires-Python: >=3.10
37
+ Description-Content-Type: text/markdown
38
+ License-File: LICENSE
39
+ Requires-Dist: einops>=0.8.1
40
+ Requires-Dist: nimporter-plus>=0.0.6
41
+ Requires-Dist: numpy
42
+ Requires-Dist: setuptools
43
+ Provides-Extra: examples
44
+ Provides-Extra: test
45
+ Requires-Dist: pytest; extra == "test"
46
+ Provides-Extra: gym
47
+ Requires-Dist: box2d-py; extra == "gym"
48
+ Requires-Dist: fire; extra == "gym"
49
+ Requires-Dist: gymnasium[box2d]>=1.0.0; extra == "gym"
50
+ Requires-Dist: moviepy>=1.0.3; extra == "gym"
51
+ Requires-Dist: numpy>=2.2.5; extra == "gym"
52
+ Requires-Dist: swig; extra == "gym"
53
+ Requires-Dist: tqdm; extra == "gym"
54
+ Requires-Dist: wandb[media]; extra == "gym"
55
+ Dynamic: license-file
56
+
57
+ ## neat (wip)
58
+
59
+ Explorations into NEAT and some of its derivative research
60
+
61
+ ## install
62
+
63
+ In project root, run
64
+
65
+ ```bash
66
+ $ sh install.sh
67
+ ```
68
+
69
+ ## quick test
70
+
71
+ ```bash
72
+ $ uv run train_lunar.py
73
+ ```
74
+
75
+ ## citations
76
+
77
+ ```bibtex
78
+ @article{Stanley2011CompetitiveCT,
79
+ title = {Competitive Coevolution through Evolutionary Complexification},
80
+ author = {Kenneth O. Stanley and Risto Miikkulainen},
81
+ journal = {ArXiv},
82
+ year = {2011},
83
+ volume = {abs/1107.0037},
84
+ url = {https://api.semanticscholar.org/CorpusID:11881625}
85
+ }
86
+ ```
87
+
88
+ ```bibtex
89
+ @inproceedings{4665912,
90
+ author = {Miguel, Cesar Gomes and Silva, Carolina Feher da and Netto, Marcio Lobo},
91
+ booktitle = {2008 10th Brazilian Symposium on Neural Networks},
92
+ title = {Structural and Parametric Evolution of Continuous-Time Recurrent Neural Networks},
93
+ year = {2008},
94
+ doi = {10.1109/SBRN.2008.12}
95
+ }
96
+ ```
97
+
98
+ ```bibtex
99
+ @article{Khamesian2021HybridSN,
100
+ title = {Hybrid self-attention NEAT: a novel evolutionary self-attention approach to improve the NEAT algorithm in high dimensional inputs},
101
+ author = {Saman Khamesian and Hamed Malek},
102
+ journal = {Evolving Systems},
103
+ year = {2021},
104
+ pages = {1-15},
105
+ url = {https://api.semanticscholar.org/CorpusID:244920723}
106
+ }
107
+ ```
108
+
109
+ ```bibtex
110
+ @article{Hornby2006AutomatedAD,
111
+ title = {Automated Antenna Design with Evolutionary Algorithms},
112
+ author = {Gregory Hornby and Al Globus and Derek S. Linden and Jason D. Lohn},
113
+ journal = {Space},
114
+ year = {2006},
115
+ url = {https://api.semanticscholar.org/CorpusID:8290212}
116
+ }
117
+ ```
118
+
119
+ ```bibtex
120
+ @inproceedings{schrum:gecco14,
121
+ title = {Evolving Multimodal Behavior With Modular Neural Networks in Ms. Pac-Man},
122
+ author = {Jacob Schrum and Risto Miikkulainen},
123
+ booktitle = {Proceedings of the Genetic and Evolutionary Computation Conference (GECCO 2014)},
124
+ month = {July},
125
+ address = {Vancouver, BC, Canada},
126
+ pages = {325--332},
127
+ note = {Best Paper: Digital Entertainment and Arts},
128
+ url = {http://www.cs.utexas.edu/users/ai-lab?schrum:gecco2014},
129
+ year = {2014}
130
+ ```
131
+
132
+ ```bibtex
133
+ @article{stanley:ec02,
134
+ title = {Evolving Neural Networks Through Augmenting Topologies},
135
+ author = {Kenneth O. Stanley and Risto Miikkulainen},
136
+ volume = {10},
137
+ journal = {Evolutionary Computation},
138
+ number = {2},
139
+ pages = {99-127},
140
+ url = "http://nn.cs.utexas.edu/?stanley:ec02",
141
+ year = {2002}
142
+ }
143
+ ```
144
+
145
+ ```bibtex
146
+ @misc{doerr2017fastgeneticalgorithms,
147
+ title = {Fast Genetic Algorithms},
148
+ author = {Benjamin Doerr and Huu Phuoc Le and Régis Makhmara and Ta Duy Nguyen},
149
+ year = {2017},
150
+ eprint = {1703.03334},
151
+ archivePrefix = {arXiv},
152
+ primaryClass = {cs.NE},
153
+ url = {https://arxiv.org/abs/1703.03334},
154
+ }
155
+ ```
156
+
157
+ ```bibtex
158
+ @misc{legg2004tournamentversusfitnessuniform,
159
+ title = {Tournament versus Fitness Uniform Selection},
160
+ author = {Shane Legg and Marcus Hutter and Akshat Kumar},
161
+ year = {2004},
162
+ eprint = {cs/0403038},
163
+ archivePrefix = {arXiv},
164
+ primaryClass = {cs.LG},
165
+ url = {https://arxiv.org/abs/cs/0403038},
166
+ }
167
+ ```
168
+
169
+ ```bibtex
170
+ @article{hiraga2024improving,
171
+ title = {Improving the performance of mutation-based evolving artificial neural networks with self-adaptive mutations},
172
+ author = {Hiraga, Motoaki and Komura, Masahiro and Miyamoto, Akiharu and Morimoto, Daichi and Ohkura, Kazuhiro},
173
+ journal = {PLOS ONE},
174
+ volume = {19},
175
+ number = {7},
176
+ pages = {e0307084},
177
+ year = {2024},
178
+ publisher = {Public Library of Science},
179
+ doi = {10.1371/journal.pone.0307084},
180
+ url ={https://doi.org/10.1371/journal.pone.0307084}
181
+ }
182
+ ```
x_neat-0.0.3/README.md ADDED
@@ -0,0 +1,126 @@
1
+ ## neat (wip)
2
+
3
+ Explorations into NEAT and some of its derivative research
4
+
5
+ ## install
6
+
7
+ In project root, run
8
+
9
+ ```bash
10
+ $ sh install.sh
11
+ ```
12
+
13
+ ## quick test
14
+
15
+ ```bash
16
+ $ uv run train_lunar.py
17
+ ```
18
+
19
+ ## citations
20
+
21
+ ```bibtex
22
+ @article{Stanley2011CompetitiveCT,
23
+ title = {Competitive Coevolution through Evolutionary Complexification},
24
+ author = {Kenneth O. Stanley and Risto Miikkulainen},
25
+ journal = {ArXiv},
26
+ year = {2011},
27
+ volume = {abs/1107.0037},
28
+ url = {https://api.semanticscholar.org/CorpusID:11881625}
29
+ }
30
+ ```
31
+
32
+ ```bibtex
33
+ @inproceedings{4665912,
34
+ author = {Miguel, Cesar Gomes and Silva, Carolina Feher da and Netto, Marcio Lobo},
35
+ booktitle = {2008 10th Brazilian Symposium on Neural Networks},
36
+ title = {Structural and Parametric Evolution of Continuous-Time Recurrent Neural Networks},
37
+ year = {2008},
38
+ doi = {10.1109/SBRN.2008.12}
39
+ }
40
+ ```
41
+
42
+ ```bibtex
43
+ @article{Khamesian2021HybridSN,
44
+ title = {Hybrid self-attention NEAT: a novel evolutionary self-attention approach to improve the NEAT algorithm in high dimensional inputs},
45
+ author = {Saman Khamesian and Hamed Malek},
46
+ journal = {Evolving Systems},
47
+ year = {2021},
48
+ pages = {1-15},
49
+ url = {https://api.semanticscholar.org/CorpusID:244920723}
50
+ }
51
+ ```
52
+
53
+ ```bibtex
54
+ @article{Hornby2006AutomatedAD,
55
+ title = {Automated Antenna Design with Evolutionary Algorithms},
56
+ author = {Gregory Hornby and Al Globus and Derek S. Linden and Jason D. Lohn},
57
+ journal = {Space},
58
+ year = {2006},
59
+ url = {https://api.semanticscholar.org/CorpusID:8290212}
60
+ }
61
+ ```
62
+
63
+ ```bibtex
64
+ @inproceedings{schrum:gecco14,
65
+ title = {Evolving Multimodal Behavior With Modular Neural Networks in Ms. Pac-Man},
66
+ author = {Jacob Schrum and Risto Miikkulainen},
67
+ booktitle = {Proceedings of the Genetic and Evolutionary Computation Conference (GECCO 2014)},
68
+ month = {July},
69
+ address = {Vancouver, BC, Canada},
70
+ pages = {325--332},
71
+ note = {Best Paper: Digital Entertainment and Arts},
72
+ url = {http://www.cs.utexas.edu/users/ai-lab?schrum:gecco2014},
73
+ year = {2014}
74
+ ```
75
+
76
+ ```bibtex
77
+ @article{stanley:ec02,
78
+ title = {Evolving Neural Networks Through Augmenting Topologies},
79
+ author = {Kenneth O. Stanley and Risto Miikkulainen},
80
+ volume = {10},
81
+ journal = {Evolutionary Computation},
82
+ number = {2},
83
+ pages = {99-127},
84
+ url = "http://nn.cs.utexas.edu/?stanley:ec02",
85
+ year = {2002}
86
+ }
87
+ ```
88
+
89
+ ```bibtex
90
+ @misc{doerr2017fastgeneticalgorithms,
91
+ title = {Fast Genetic Algorithms},
92
+ author = {Benjamin Doerr and Huu Phuoc Le and Régis Makhmara and Ta Duy Nguyen},
93
+ year = {2017},
94
+ eprint = {1703.03334},
95
+ archivePrefix = {arXiv},
96
+ primaryClass = {cs.NE},
97
+ url = {https://arxiv.org/abs/1703.03334},
98
+ }
99
+ ```
100
+
101
+ ```bibtex
102
+ @misc{legg2004tournamentversusfitnessuniform,
103
+ title = {Tournament versus Fitness Uniform Selection},
104
+ author = {Shane Legg and Marcus Hutter and Akshat Kumar},
105
+ year = {2004},
106
+ eprint = {cs/0403038},
107
+ archivePrefix = {arXiv},
108
+ primaryClass = {cs.LG},
109
+ url = {https://arxiv.org/abs/cs/0403038},
110
+ }
111
+ ```
112
+
113
+ ```bibtex
114
+ @article{hiraga2024improving,
115
+ title = {Improving the performance of mutation-based evolving artificial neural networks with self-adaptive mutations},
116
+ author = {Hiraga, Motoaki and Komura, Masahiro and Miyamoto, Akiharu and Morimoto, Daichi and Ohkura, Kazuhiro},
117
+ journal = {PLOS ONE},
118
+ volume = {19},
119
+ number = {7},
120
+ pages = {e0307084},
121
+ year = {2024},
122
+ publisher = {Public Library of Science},
123
+ doi = {10.1371/journal.pone.0307084},
124
+ url ={https://doi.org/10.1371/journal.pone.0307084}
125
+ }
126
+ ```
@@ -0,0 +1,4 @@
1
+ from neat.neat import (
2
+ NEAT,
3
+ Topology
4
+ )