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.3.tar.gz (121.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.3-py3-none-any.whl (162.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nd2py-3.2.3.tar.gz
  • Upload date:
  • Size: 121.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.3.tar.gz
Algorithm Hash digest
SHA256 cf9dc709f583a4dcfa8a05c32210fee9039efbfe19a5a409884031ce747977fb
MD5 9c3545ad6cf1b744089792bc145831ef
BLAKE2b-256 314c5d6a8d62532d93d8b218dd8b4dc5481d218ee6900acf6aaaed6ac7407063

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: nd2py-3.2.3-py3-none-any.whl
  • Upload date:
  • Size: 162.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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aec9db75886fa658e7d78957b25604c9f1bc99d2d5eff0542631fa187bbc15af
MD5 43a95c96bd0638f097f61972edd7c0e8
BLAKE2b-256 07f2a680d7faecc1acf9353510addc8ca1f625da043737055b6979ad360b82ce

See more details on using hashes here.

Provenance

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