Skip to main content

Suite of hyperbolic neural networks in PyTorch

Project description

A suite of hyperbolic neural networks in PyTorch, primarily focused on the Poincaré ball model of hyperbolic geometry.

Overview

HypTorch provides tools for working with neural networks in hyperbolic space, including:

  • Poincaré ball model operations
  • Hyperbolic layers and modules
  • Distance calculations in hyperbolic space
  • Mappings between models (Poincaré to Klein and vice versa)
  • Manifold abstractions for geometric operations

Installation

pip install hyptorch

Mathematical Background

Poincaré Ball Model

The Poincaré ball model is a model of hyperbolic geometry where the entire hyperbolic space is mapped to the interior of a Euclidean unit ball. The Poincaré ball has a negative curvature, which is represented by the parameter curvature in this library.

Some key operations include:

  • Möbius addition: The equivalent of "adding" two points in hyperbolic space
  • Exponential map: Mapping from the tangent space to the manifold
  • Logarithmic map: Mapping from the manifold to the tangent space
  • Parallel transport: Moving tangent vectors along geodesics

Applications

Hyperbolic neural networks are particularly effective for:

  • Hierarchical data structures
  • Tree-like data
  • Network/graph embedding
  • Natural language processing
  • Any data with inherent hierarchical structure

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

hyptorch-0.1.3.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

hyptorch-0.1.3-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hyptorch-0.1.3.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.5

File hashes

Hashes for hyptorch-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6fff35fd9c3724be3e8b222444a3311aacec16eb30bad645e079a798819d81ca
MD5 a4477b8a6d5335bbaffc08677d2c716a
BLAKE2b-256 794031ff839a4e1834d82dea91de6f3c6f2792b85880bb6134ca20441d34d17d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hyptorch-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.5

File hashes

Hashes for hyptorch-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2231c6e8d5420a6839abbcba5463430ea2b9efb04da3e3691e7bf91a437e7a7
MD5 62294bce760715da58bb74c51b745fcf
BLAKE2b-256 ac00794d53fe72ec92ee27ae51ac0ada104f0a38ea21f04d29b37a1d751643ea

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