nd2py
nd2py is a comprehensive and extensible Python framework designed for Symbolic Regression (SR) and the discovery of complex network dynamics.
📖 About The Project
nd2py originally started as the official implementation for the paper "Discovering network dynamics with neural symbolic regression". However, it has since evolved significantly beyond a single-paper repository.
We have completely rewritten the underlying Symbolic Engine from the ground up to be highly efficient, modular, and extensible. Based on this robust core, nd2py now serves as a general-purpose symbolic regression library. The original algorithm from the paper (NDFormer) is now seamlessly integrated as one of the many powerful search modules within the framework.
Whether you are looking for classic genetic algorithms, modern Monte Carlo methods, or cutting-edge AI-driven approaches, nd2py provides a unified interface to explore the space of mathematical expressions.
✨ Core Features
- Unified Symbolic Engine: A custom-built, highly optimized core for symbolic expression representation, parsing, transformation, and fast evaluation (supporting both
numpyandtorchbackends). - Diverse Search Algorithms: Out-of-the-box support for multiple symbolic regression strategies:
- 🧬
gp: Genetic Programming. - 🌳
mcts: Monte Carlo Tree Search. - 🧠
ndformer: Neural Symbolic Regression (from our original paper). - 🤖
llmsr: Large Language Model-guided Symbolic Regression.
- 🧬
- Highly Extensible: Designed with a clean architecture that makes it exceptionally easy to implement and benchmark your own custom symbolic regression algorithms.
Metadata
Release files for nd2py 3.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nd2py-3.4.1.tar.gz | 128.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nd2py-3.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 299.9 kB
Release files / nd2py-3.4.1.tar.gz
| Download URL | nd2py-3.4.1.tar.gz |
|---|---|
| Size | 128.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b967f3b955eec41dfbd2968a3aa691452cc2f405bf3dae268057ff36b5cc155
|
|
BLAKE2b-256 checksum How to use checksums |
d6bb1052005c87b8209c7f7e5c8c80593d369b77156d8745b17048cf4badb973
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency logRelease files / nd2py-3.4.1-py3-none-any.whl
| Download URL | nd2py-3.4.1-py3-none-any.whl |
|---|---|
| Size | 171.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d71fcc32f8fb76f6238a33d0c859ffb8bced03ec9e08edb030909143174662a
|
|
BLAKE2b-256 checksum How to use checksums |
a02300b7eea6fbfb3a944f3688b5cd0ac6acf6a98871e1c4a5fb2d41d102ed04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 16, 2026.
Transparency log