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

Uploaded Python 3

File details

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

File metadata

  • Download URL: hypersynergy-0.1.3.tar.gz
  • Upload date:
  • Size: 5.6 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.3.tar.gz
Algorithm Hash digest
SHA256 427488a0ece38af97525d6d103c7a6876cccda5ab18a7258f4a611a863c1a12a
MD5 dda79b3aaabd8b7204aa80b57e8f421c
BLAKE2b-256 74a448fedb84117374cdce9096fcda5b6fa69e25165e347ddae6ca534e4bfde5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hypersynergy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ffbb6f60889c6b989e93871993d63a53d95922b7fdf544ee733390294f6d3e35
MD5 353d105efcdf2882686baf00e3c2ec75
BLAKE2b-256 0840b1eb5ffd0ba8af3944117733c382d2175a028c863e510f3ab84d04be020e

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