Installation¶
CJD-Flows needs Python 3.11 or newer. The core only depends on torch and
numpy; everything else is an optional extra.
pip install cjd-flows # core: torch + numpy only
pip install "cjd-flows[eval,onnx]" # + scipy/sklearn/matplotlib, ONNX export
pip install "cjd-flows[legacy]" # + the pyro-based 0.9 API
Extra |
Contents |
Needed for |
|---|---|---|
|
scipy, scikit-learn, matplotlib |
|
|
onnx, onnxscript, onnxruntime |
|
|
torchvision |
image datasets via torchvision |
|
pandas, h5py |
first preprocessing of the MAF tabular benchmarks (GAS, HEPMASS, BSDS300) |
|
pyro-ppl |
the 0.9 API, see Legacy API |
|
Sphinx and extensions |
building this documentation |
Development¶
The repository uses uv:
uv sync # dev environment incl. pytest/ruff
uv run pytest -m "not slow"
Build the documentation locally with:
pip install -e ".[docs,eval,onnx]"
sphinx-build -W --keep-going -b html docs docs/_build/html