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).

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

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.2.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.2.0
File Size Uploaded Provenance Actions
manifold_microscope-0.2.0.tar.gz 100.4 kB Without provenance Details for manifold_microscope-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 226.9 kB

Release files / manifold_microscope-0.2.0.tar.gz

Download URL manifold_microscope-0.2.0.tar.gz
Size 100.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3aac8b3cc5cdc6737029b708f558474ae46aa99260889553d8260c16739a2143
BLAKE2b-256 checksum
How to use checksums
a0d3b05d8504182bad7aee79a45dfc3e858e6f6c7dce95326919e0aa7aa086db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

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

Download URL manifold_microscope-0.2.0-py3-none-any.whl
Size 126.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec4ab5cfac20eebbaa9061b025fb39e6653976deb7af2b0cdd02c800c6924c87
BLAKE2b-256 checksum
How to use checksums
f8cc68613831b99312bef0b4af3efadd1ea5aabd4100d036ae4c65d40206d6fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.9

Security for manifold-microscope 0.2.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