qens.sampling¶
MCMC over a registered forward model.
- qens.sampling.run_mcmc(data_bins, sigma_res, p_map, model='anisotropic_rotor', cfg=None, verbose=True, **extras)[source]¶
Run MCMC over a registered forward model.
- Parameters:
data_bins (list) – From :func:’qens.fitting.build_data_bins’.
sigma_res (float | array | list[array]) – Resolution: scalar Gaussian σ in meV, single measured kernel, or one kernel per Q-bin.
p_map (array) – MAP starting point (from :func:’qens.fitting.find_map’).
model (str) – Registered forward-model name.
cfg (Config)
verbose (bool)
extras – Forwarded to the model’s ‘’predict’’ callable.
- Return type:
- Returns:
samples (ndarray of shape ‘’(n_kept, n_dim)’’)
- qens.sampling.summarise(arr, label='', verbose=True)[source]¶
Median and 95% credible interval for a single parameter chain.