Skip to main content

The sublevel Flood bifiltration: towards scalable 2-parameter persistent homology

PyPI - Version

This repository contains the code for the manuscript Sublevel Flood bifiltration: scalable 2-parameter persistent homology. The aim is to provide a way to compute 2-parameter persistent homology of large scale point clouds (up to $10^6$). To do so, it extends the Flood filtration to the 2-parameter context.

The Python package constructs a SimplexTreeMulti from the multipers library.

Installation

sublevel-flood can be installed via PyPI.

pip install sublevel-flood

Usage

The following example computes the sublevel Flood bifiltration (with 100 landmarks) of a point set in $\mathbb{R}^3$ distributed as a sphere with ambient noise, using CUDA. Then, it computes and plots its multiparameter module approximation with multipers.

import slflood
from slflood.data import noisy_sphere_data

import matplotlib.pyplot as plt
import multipers

n_pts = 10000
n_lms = 100
dim = 3

pts, lms_idx, fun = noisy_sphere_data(n_pts, n_lms, dim,
                                      bandwidth=0.2)

slf = slflood.slflood_bifiltration(pts.cuda(), lms_idx.cuda(), fun.cuda())
mma = multipers.module_approximation(slf)
mma.plot(box=[[0, 0], [1, 1]])
plt.show()

Citation

@inproceedings{clemot2026sublevel,
      title={The sublevel {Flood} bifiltration: towards scalable 2-parameter persistent homology}, 
      author={Cl{\'e}mot, Matt{\'e}o and Digne, Julie and Tierny, Julien},
      year={2026},
      booktitle={NeurIPS},
}

Metadata

Release files for sublevel-flood 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sublevel-flood 0.1
File Size Uploaded
sublevel_flood-0.1.tar.gz 49.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sublevel-flood 0.1
File Interpreter ABI Platform
sublevel_flood-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 65.2 kB

Release files / sublevel_flood-0.1.tar.gz

Download URL sublevel_flood-0.1.tar.gz
Size 49.8 kB
Tags Source
SHA-256 checksum
How to use checksums
963a89e6fe63432e3335c45c21ee311dad5c7e84bafcbac2c940bc87a46d57fe
BLAKE2b-256 checksum
How to use checksums
7365a81f357802aa084036910d17905774fb07089c03bada1d9bbb9ce33e2de4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release files / sublevel_flood-0.1-py3-none-any.whl

Download URL sublevel_flood-0.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
795127b81f695c6a39c0922c0d8d979ae09bea3575022b55288c1b6feead7632
BLAKE2b-256 checksum
How to use checksums
5bce501391c33f7049c5b0afbbedc61a1d45b70e8a28356c7b5e727fac457f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page