pocoMC utilities
- unified_utils.utils.poco_bounds(param_dict)
Make a bounds array to be passed to poco. This needs to indicate any hard priors.
- Parameters:
param_dict (dict) – Nested dictionary for parameters of model.
- Returns:
poco_bounds (array) – Array with shape
(nparam, 2)containing the upper and lower bounds of the priors. For priors that don’t have hard boundsnp.nanwill be used.
- unified_utils.utils.sample_prior(prior_list, Nsamp, random_state=None)
Sample from specified prior.
- Parameters:
prior_list (list) – List of prior distribtuions for each parameter. Each element should be a class with
.rvs()method.Nsamp (int) – The number of samples to generate.
random_state (int) – Random state for sample generation. Default is
None.
- Returns:
prior_samples (array) – Array of shape
(len(prior_list), Nsamp)containing the prior samples.