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.4.1.tar.gz (128.7 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.4.1-py3-none-any.whl (171.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nd2py-3.4.1.tar.gz
Algorithm Hash digest
SHA256 6b967f3b955eec41dfbd2968a3aa691452cc2f405bf3dae268057ff36b5cc155
MD5 4daac5bcd7d9ae516e6dbe8276d17a37
BLAKE2b-256 d6bb1052005c87b8209c7f7e5c8c80593d369b77156d8745b17048cf4badb973

See more details on using hashes here.

Provenance

The following attestation bundles were made for nd2py-3.4.1.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.4.1-py3-none-any.whl.

File metadata

  • Download URL: nd2py-3.4.1-py3-none-any.whl
  • Upload date:
  • Size: 171.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.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0d71fcc32f8fb76f6238a33d0c859ffb8bced03ec9e08edb030909143174662a
MD5 0c927d02a48893fb850700e06cddcfb8
BLAKE2b-256 a02300b7eea6fbfb3a944f3688b5cd0ac6acf6a98871e1c4a5fb2d41d102ed04

See more details on using hashes here.

Provenance

The following attestation bundles were made for nd2py-3.4.1-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