Skip to main content

nd2py (Neural Discovery of Network Dynamics) symbolic regression

Project description

nd2py

nd2py

Discovering network dynamics with neural symbolic regression.

Nature Based on ND2

PyPI version Python Versions Documentation License

GitHub Repo Last Commit codecov

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 numpy and torch backends).
  • 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nd2py-3.2.2.tar.gz (117.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nd2py-3.2.2-py3-none-any.whl (156.1 kB view details)

Uploaded Python 3

File details

Details for the file nd2py-3.2.2.tar.gz.

File metadata

  • Download URL: nd2py-3.2.2.tar.gz
  • Upload date:
  • Size: 117.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nd2py-3.2.2.tar.gz
Algorithm Hash digest
SHA256 dd2aacdbfc64ccc7f7fb6683251d8d146a3ecca9bbe19c40cd0ab2762cf756b7
MD5 1d81bec697aaedb636dfd9b5a8f3296e
BLAKE2b-256 8f04b71e4416a369b07440d5cd1afe0ef7e98008946ad27dfae23d676c9df19f

See more details on using hashes here.

Provenance

The following attestation bundles were made for nd2py-3.2.2.tar.gz:

Publisher: pypi.yml on yuzhTHU/nd2py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nd2py-3.2.2-py3-none-any.whl.

File metadata

  • Download URL: nd2py-3.2.2-py3-none-any.whl
  • Upload date:
  • Size: 156.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nd2py-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d918bd5fe9ddc3292615f8c40f9f6a2b35445f6deccaf35c1b59fcb2ba786c1f
MD5 56190c7acc419e047e65150beb8a5e4d
BLAKE2b-256 02c33849e07e5c3e7b138ba159a0b4e78760f7183d8a89ba2ca2066d4f7b6a88

See more details on using hashes here.

Provenance

The following attestation bundles were made for nd2py-3.2.2-py3-none-any.whl:

Publisher: pypi.yml on yuzhTHU/nd2py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page