Skip to content

API reference

Every public symbol the library exposes. Generated from docstrings via mkdocstrings.

Top-level

The flat surface re-exported by igl:

Subpackages

  • igl.core — encoder, kernel, solver, trainer, losses.
  • igl.kernels — operator zoo + registration API.
  • igl.matryoshka — samplers + dimension curve helpers.
  • igl.models — sklearn-compatible estimators.
  • igl.metrics — cross-task d_eff comparison + elbow detectors.
  • igl.nn — bare PyTorch IGLModule.
  • igl.spd — Riemannian extension (AIRM, log-Eig, orthogonality, reconstruction).
  • igl.data — synthetic data generators.
  • igl.viz — optional matplotlib helpers.

Source layout

src/igl/
├── __init__.py          # flat public surface
├── config.py            # frozen dataclasses
├── exceptions.py        # IGLError + subclasses
├── types.py             # Protocols + StrEnums + Literal companions
├── core/                # encoder, kernel, solver, trainer, losses, normalization
├── kernels/             # 9 log-space operators + registry
├── matryoshka/          # samplers + dimension curve
├── models/              # sklearn estimators
├── metrics/             # d_eff comparison + elbow detectors
├── nn/                  # IGLModule
├── spd/                 # AIRM + log-Eig + orthogonality + reconstruction
├── data/                # synthetic generators
└── viz/                 # matplotlib helpers (gated behind [viz])