API reference

The public surface of jaxrens, organised by subpackage. Each symbol is linked to its own page with the full docstring; import symbols from their subpackage, e.g. from jaxrens.sampling.nested_sampling import run_ns. The CLI subcommands are documented separately at CLI reference. Every allowed YAML configuration parameter is documented at Configuration.

An interactive overview of the package layout — subpackages and modules sized by lines of code — sets the stage:

Note

import jaxrens exposes only __version__ (and does not import JAX, see Contributing). Import public symbols from their subpackage — from jaxrens.sampling.nested_sampling import run_ns — and browse the package tree below to find them.

Subpackages and modules

For the internal organization (move kernels, adaptation, init helpers, constraints, I/O writers), browse the subpackages and top-level modules directly:

backends

Energy backend interfaces and unified loader.

sampling

NS algorithm and move kernels.

state

State definitions: walker state, NS state, configuration dataclasses.

init

jaxrens.init: walker initialization utilities.

constraints

Composable configuration constraints for nested sampling.

io

I/O layer: checkpointing, trajectory writing, energy logging.

postprocess

Post-processing of nested sampling results.

cli

CLI entry points: run, parse, monitor.

utils

Shared utilities: periodic-cell geometry and batch padding for jax.lax.map.

prior_mass

Prior-mass bookkeeping for nested sampling with n_cull >= 1.

unvalidated

Mark code paths that have never been exercised in a production simulation.