Skip to Content

Python API

Every public module, class and function in Lacuna, with signatures read from the package.

These pages are generated from Lacuna 0.14.3. They list every public name with its exact signature, defaults and fields. The guides explain what each one is for.

Import the package as lc. Everyday names are available from the root, such as lc.SignalStudy and lc.standard_audit, and each module is reachable from it, such as lc.signal.ic. The one exception is lacuna.audit: lc.audit is the audit function, so import from the module with from lacuna.audit import .... Only the modules below are public: anything else, including modules whose names start with an underscore, can change without notice.

ModuleContents
lacunaThe package root: results, findings, configuration, errors and the study workflow.
lacuna.labelsForward-return labels with explicit entry, exit and horizon semantics.
lacuna.signalInformation coefficient, quantiles, turnover, decay, neutralization and portfolio projection.
lacuna.cvPurged k-fold, combinatorial purged and walk-forward splits.
lacuna.validationBootstrap, Sharpe inference, permutation tests, multiple testing and backtest-overfitting checks.
lacuna.robustnessParameter, subperiod and universe perturbation.
lacuna.regimeRegime classification and per-regime analysis.
lacuna.costsCost models, stress scenarios, break-even cost, capacity and liquidity.
lacuna.biasPoint-in-time joins, survivorship, revisions and look-ahead checks.
lacuna.eventsEvent windows and event response.
lacuna.auditThe signal-audit rule engine.
lacuna.audit_profilesThe standardized cross-phase audit and its profiles.
lacuna.reportAudit reports and their HTML, Markdown and Plotly renderers.
lacuna.experimentThe append-only experiment registry and canonical fingerprints.
lacuna.bundlePortable, verifiable reproducibility bundles.
lacuna.adaptersInput normalization, DuckDB, scikit-learn, vendor, factor-panel and backtest adapters.
lacuna.pluginsMetadata-only plugin discovery and explicit activation.
lacuna.diagnosticsInstallation diagnostics, the engine of lacuna doctor.
lacuna.benchmarkReproducible developer benchmarks.
lacuna.schemasPackaged JSON schemas for persisted artifacts.