Skip to main content

A Topological Graph Neural Network framework for Traditional Medicine synergy prediction.

Project description

HyperSynergy 🌿

The HyperSynergy Python library provides the core inference and explainability (XAI) engine for the HyperSynergy Clinical Decision Support System (CDSS). It bridges centuries of Traditional Medicine with modern geometric deep learning.

This package houses the Manifold-Aware Transformer Gating (MATG) neural network, designed to predict high-order pharmacological synergies between traditional herbal components using non-Euclidean (Poincaré) geometry.

📦 Installation

You can install the library directly from PyPI:

pip install hypersynergy

Dependencies

  • torch >= 2.0.0
  • numpy >= 1.21.0

🚀 Quick Start

The library provides modular access to the MATG architecture and the NeuMapper Topological Explainability suite.

import torch
from hypersynergy.models import MATG_Model
from hypersynergy.explainers import NeuMapper

# 1. Initialize the MATG model natively
model = MATG_Model(num_nodes=714, num_hyperedges=150, mode='proposed')

# (Assuming node_features and incidence_matrix are pre-loaded tensors)
# 2. Forward pass automatically computes Euclidean & Hyperbolic topologies
euclidean_feats, hyperbolic_topology = model(node_features, incidence_matrix)
predictions = model.decode_synergy(euclidean_feats, hyperbolic_topology)

# 3. Extract Topological Explainable AI (XAI) insights automatically
# This returns the alpha weights (Quân-Thần-Tá-Sứ hierarchy)
xai_attention_weights = NeuMapper.extract_topological_hierarchy(model)

🔬 Core Architecture

  • Framework Version: v82
  • Core Task: Node-Hyperedge Incidence Prediction (Synergy Evaluation)
  • Dataset: Trained on the DoTatLoi-714 Benchmark

🎓 Academic Context

This library is the computational foundation of a Ph.D. research project focusing on Macro-to-Micro Geometric Learning. It is structurally optimized for deployment as a modern, headless Clinical Decision Support System.

Lead Researcher: Vo Thi Kim Anh

  • Ph.D. Candidate, VSB - Technical University of Ostrava, Czech Republic
  • Researcher, Ton Duc Thang University, Vietnam

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

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

hypersynergy-0.1.4.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

hypersynergy-0.1.4-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file hypersynergy-0.1.4.tar.gz.

File metadata

  • Download URL: hypersynergy-0.1.4.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for hypersynergy-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cca118649d0af8a6d1d99053f76d34a929f939c77b2a8313965ea8ae77314e52
MD5 95a97adaefb1a6a5edee61ce3f32cf46
BLAKE2b-256 976c871e4868087d3c78322b5d7918b546004f781387b7e9309a3a45e1cb8f41

See more details on using hashes here.

File details

Details for the file hypersynergy-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: hypersynergy-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for hypersynergy-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f418e48969e36bbbda08577da3ec9155b4423255699f05edcfa5f0bd0c03e192
MD5 5407df9aa22e3740fcdce79fb7963ef8
BLAKE2b-256 ba64de38bf419e311170c5919d1466aaa3c8e4f466e466664d4877ed8a4ef4ed

See more details on using hashes here.

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