jaxrens.sampling.nested_sampling¶
Core nested sampling loop.
Two-loop architecture: - Outer loop (Python): adaptation, overflow retry, termination, callbacks, logging - Inner step (JIT): ns_step — one iteration (n_cull dead points) via lax.scan over MCMC
Functions: - init_ns(): Initialize NSState from walker data + MWG init_fn - ns_step(): One NS iteration — cull n_cull walkers, refill, walk (fully JIT-compatible) - run_ns(): Full NS run (outer Python loop calling ns_step) - init_ns_parallel() / run_ns_parallel(): Multi-run vmap support
Functions
Initialize NSState from walker data. |
|
Initialize a |
|
Create batched NSState for n_runs parallel NS runs. |
|
Build an |
|
One NS iteration: replace the |
|
One NS iteration with the population sharded across |
|
Run a full nested sampling calculation. |
|
Run NS with |
|
Run multiple NS calculations in parallel via vmap(ns_step). |
|
Run a single NS run with the walker population sharded across |