Skip to main content

LANfactory

DOI PyPI PyPI downloads Run tests codecov License: MIT

LANfactory trains likelihood approximation networks (LANs), choice probability networks (CPNs), and option probability networks (OPNs) with PyTorch or JAX/Flax. It exports concrete-shape ONNX artifacts for use as likelihoods in HSSM.

Documentation · Start with the PyTorch tutorial · API reference · HSSM ecosystem map

Install

pip install lanfactory

Optional integrations are available through the mlflow, hf, sbi, and bayesflow extras, or together through lanfactory[all]. The documentation is the canonical source for training, export, configuration, and sharing guidance.

Contributor bootstrap

Install the development environment and run the package gates:

uv sync --all-groups
uv run pytest tests/
uv run ruff check src/lanfactory
uv run ruff format --check .

Build or serve the documentation through the repository-owned entry point:

./scripts/docs.sh build
./scripts/docs.sh serve

Notebook execution remains a separate package test workflow; the documentation build renders the committed notebook outputs without executing them.

Citation

Use the archived LANfactory release DOI: 10.5281/zenodo.17137303.

Metadata

Release files for lanfactory 0.10.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 lanfactory 0.10.0
File Size Uploaded Provenance Actions
lanfactory-0.10.0.tar.gz 150.6 kB Without provenance Details for lanfactory-0.10.0.tar.gz

Release files / lanfactory-0.10.0.tar.gz

Download URL lanfactory-0.10.0.tar.gz
Size 150.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c40dc1d896d1b11aea5f88c7acaf3cc5750991c11849dad078f8666b1138597d
BLAKE2b-256 checksum
How to use checksums
601f591c96c11e7f21df912dedef2e5aa55941ec3e0ae8fb117f4e8d5be9c211
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for lanfactory 0.10.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