LANfactory
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.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lanfactory-0.9.0.tar.gz | 134.3 kB | Without provenance | Details for lanfactory-0.9.0.tar.gz |
Release files / lanfactory-0.9.0.tar.gz
| Download URL | lanfactory-0.9.0.tar.gz |
|---|---|
| Size | 134.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ead80c3f98a66c99eb7acbe140c84a4ef9ce4ffb9fded74b6035edec6ddaa124
|
|
BLAKE2b-256 checksum How to use checksums |
33c64e08853e639b4e35d9a748f7d3b21f1b4ae7912f0caf1ad49da1f98e72e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for lanfactory 0.9.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.