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.3.0.tar.gz (123.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.3.0-py3-none-any.whl (164.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nd2py-3.3.0.tar.gz
  • Upload date:
  • Size: 123.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.3.0.tar.gz
Algorithm Hash digest
SHA256 786fe3d098e7e7de6b07f81ade6ad6c246311e63da92bc0319282d425524e871
MD5 d84bc79995fc82ba91b05f9ff4081bb8
BLAKE2b-256 d9a80b953df060305f0e27a6f689bec28127fad6c207f9ba8c6ac9f47047e6a9

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: nd2py-3.3.0-py3-none-any.whl
  • Upload date:
  • Size: 164.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c001e2f269396ef27559b906554c2a9a2f2e88f9338af3574ebb540f84a241d7
MD5 75e78eda84f1284107366a9dee46673e
BLAKE2b-256 a9f09e56fc85410efc7cef5ed1b67ed5543e40b6977a7b98b7b3c80429e22d4e

See more details on using hashes here.

Provenance

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