Quickstart

caife is a Python package for unfolding. As such, it provides techniques for Composable and Auto-differentiable Inversion of Fredholm Equations. The sound of its name (spoken as “cave”) is reminiscent of Plato’s cave analogy, which has been used to describe the indirect measurement processes that unfolding facilitates.

caife provides robust and flexible fits, high-quality binnings, and adequate estimates of statistical and systemic uncertainties. It is licensed under the GNU Lesser General Public License, version 2.1 only.

Installation

pip install caife

You also might consider installing a GPU-powered JAX backend.

64-bit precision

Importing caife enables 64-bit precision in JAX because unfolding requires this precision to produce meaningful results. Please note that this setting affects all JAX code in your Python process, not only caife, and that float64 computations can be considerably slower on some GPUs than float32 computations.

If you deliberately want to keep 32 bits, set the environment variable JAX_ENABLE_X64=0 before importing caife. caife respects any explicit value of this variable.

Usage

See the Jupyter notebook at examples/quickstart.ipynb.