Skip to main content

The Data Manifold under the Microscope

Documentation Status PyPI Downloads

manifold-microscope provides toy and image datasets, plus finite-difference estimates of volume, scalar curvature and reach on parameter grids. It accompanies Marios Koulakis and Constantin Seibold, The Data Manifold under the Microscope (ICML 2026).

Documentation on Read the Docs

Install

Python ≥3.10:

python -m pip install manifold-microscope

For the experiment scripts:

python -m pip install "manifold-microscope[benchmark]"

Quickstart: scalar curvature on a sphere

import numpy as np
from microscope.computations_grid.curvature import scalar_curvature

radius = 2.0
latitude = np.linspace(-0.7, 0.7, 41)  # Avoid the coordinate singularities at the poles.
longitude = np.linspace(0, 2 * np.pi, 48, endpoint=False)
u, v = np.meshgrid(latitude, longitude, indexing="ij")
points = radius * np.stack(
    [np.cos(u) * np.cos(v), np.cos(u) * np.sin(v), np.sin(u)], axis=-1
)
curvature = scalar_curvature(
    points,
    difference_intervals=[latitude[1] - latitude[0], longitude[1] - longitude[0]],
    cyclic_dimensions=[1],
    patch_sizes=[13, 17],
    device="cpu",
)
print(f"Mean scalar curvature: {curvature.mean():.3f}")
# Approximately 0.5: a sphere has scalar curvature 2 / radius**2.

Grid APIs with a device argument select CUDA when available, otherwise CPU. Custom experiment configs default to CPU; the paper presets explicitly request cuda:0 and fail if it cannot initialize. See the experiment guide for device overrides, training budgets, progress controls and output formats.

Documentation and paper reproduction

The online documentation follows development. Start with the guides and API references below.

For the paper figures, use version 0.2.0 (Git tag v0.2.0). Check out that tag and install its experiment dependencies as described in the reproduction guide. Later releases may introduce different numerical methods, including extrinsic curvature or faster reach searches, and may produce different results. Version 0.2.0 is the fixed reference for the paper workflow.

Note: The original paper experiments were not fully seeded. Current presets specify seeds, but plots may still vary slightly across runs or devices.

BSD-3-Clause license; adapted β-VAE code has a separate MIT attribution and license.

Citation

If you use our code in your work, please cite our paper:

@InProceedings{pmlr-v306-koulakis26a,
  title     = {The Data Manifold under the Microscope},
  author    = {Koulakis, Marios and Seibold, Constantin},
  booktitle = {Proceedings of the 43rd International Conference on Machine Learning},
  pages     = {60568--60602},
  year      = {2026},
  volume    = {306},
  series    = {Proceedings of Machine Learning Research},
  publisher = {PMLR},
  url       = {https://proceedings.mlr.press/v306/koulakis26a.html}
}

Metadata

Release files for manifold-microscope 0.3.0

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

Source distribution (sdist)

Source distribution for manifold-microscope 0.3.0
File Size Uploaded Provenance Actions
manifold_microscope-0.3.0.tar.gz 136.9 kB Without provenance Details for manifold_microscope-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for manifold-microscope 0.3.0
File Interpreter ABI Platform Actions
manifold_microscope-0.3.0-py3-none-any.whl Python 3 none any Details for manifold_microscope-0.3.0-py3-none-any.whl

Total release size: 307.2 kB

Release files / manifold_microscope-0.3.0.tar.gz

Download URL manifold_microscope-0.3.0.tar.gz
Size 136.9 kB
Tags Source
SHA-256 checksum
How to use checksums
68e23a302c596420480537ca49ed4fb520314b3d6a5f8750009085f9651d5cde
BLAKE2b-256 checksum
How to use checksums
f0a1e77da6af97d957df9230f1db4cd91e056d81cfc9eb194267cb20664ede5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.9

Release files / manifold_microscope-0.3.0-py3-none-any.whl

Download URL manifold_microscope-0.3.0-py3-none-any.whl
Size 170.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
614f21aaadeb1bb4104f7673a907a1924da33e2c7c2631d0ae50dc234c9a7319
BLAKE2b-256 checksum
How to use checksums
8ecd7ec68014712eef2b06c53951e82eb261da5d1337d513441dbba6e39d0804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.9

Security for manifold-microscope 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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