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.0.tar.gz (116.0 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.0-py3-none-any.whl (153.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nd2py-3.2.0.tar.gz
Algorithm Hash digest
SHA256 7dbf071e3967b17cbec1a6cea47c1473653b5345fbdfcc1230deff83349121d2
MD5 79b03536ba23dafd8dd5a2634b3f661b
BLAKE2b-256 c14d9f73ea6f9f68da113250312b1e920a169454bde4e14846e070d63d1f9f5d

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for nd2py-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ceac039f6e7a1e604888f0b1c6722add3ca63b43cb9f0366b5afa27b7374256
MD5 576aa01a765be78cdb8a0f8ff0e0872a
BLAKE2b-256 61df1af7a0b171aeef2d33b963673e74818e2ba02d9eee5c0d43a59d425350ad

See more details on using hashes here.

Provenance

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