Skip to main content

Estimating the curvature of a manifold from data

Project description

Documentation Python version Code license GitHub release

KappaKit: Curvature Estimation on Data Manifolds with Diffusion-Augmented Sampling

kappakit is a Python library for estimating the curvature of a data manifold.

Curvature is the fundamental descriptor of local geometry—useful in shape analysis, learning theory, and non-Euclidean algorithms—yet it proves elusive to estimate on sparse, noisy data.

KappaKit offers a modular base framework for various curvature estimation methods. In particular, it supports training diffusion models via the HuggingFace API to increase the sample density for downstream estimation methods.

Installation

From pip:

pip install kappakit

From source:

git clone https://github.com/Weber-GeoML/kappakit.git
pip install -e .

Usage

This repository contains the experiment scripts to reproduce the paper Curvature Estimation on Data Manifolds with Diffusion-Augmented Sampling. If you use this repository, please use this paper as the citation.

You can reproduce the experiments by running scripts/experiments/all.sh. The figures in the paper were generated with scripts/experiments/generate_figures.ipynb.

A curvature estimation experiment may invoke the following routines in order:

  1. kappakit.routines.create_dataset
  2. kappakit.routines.train_diffusion_model
  3. kappakit.routines.estimate_curvature

Please refer to the documentation for the API reference as well as tutorials on how to use or expand this codebase.

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

kappakit-0.1.0.tar.gz (47.9 kB view details)

Uploaded Source

Built Distribution

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

kappakit-0.1.0-py3-none-any.whl (64.3 kB view details)

Uploaded Python 3

File details

Details for the file kappakit-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for kappakit-0.1.0.tar.gz
Algorithm Hash digest
SHA256 424e1443e434acd22c492bc417ddfe9f7eec1d7dd8398a7c701e29cba0aa7643
MD5 dd5b6192ea575582de658b3fc120a85f
BLAKE2b-256 fa7b07168e97790b07f8c8b02ec0647ccfe05a9d2fa4640a4a9d6a5dadc3b116

See more details on using hashes here.

Provenance

The following attestation bundles were made for kappakit-0.1.0.tar.gz:

Publisher: python-publish.yml on Weber-GeoML/kappakit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kappakit-0.1.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for kappakit-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c4c23f91de52f3e3cf161b64561fe35eb92ea8eabc8f90388cf37666c8e8d26
MD5 985766e86eefb50ff1fee77f81ab09a6
BLAKE2b-256 b20e902c1dc03cbadec0a022156f021c566171b6c2d98bd8a968855eecef51b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for kappakit-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on Weber-GeoML/kappakit

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