threeML.bayesian.dynesty_sampler module
- class threeML.bayesian.dynesty_sampler.DynestyDynamicSampler(likelihood_model=None, data_list=None, **kwargs)[source]
-
Bases:
UnitCubeSampler- sample(quiet: bool = False, **kwargs)[source]
-
Sample using the Dynestey DynamicNestedSampler class.
- Parameters:
-
quiet (bool) – verbosity. Defaults to False.
kwargs (dict) – Additional keywords that get passed to the run_nested() function.
- Return type:
- Returns:
- setup(nlive: int = 500, history_filename=None, **kwargs)[source]
-
Setup the Dynesty dynamic nested sampler. All available parameters can be found in the respective version of https://dynesty.readthedocs.io/en/v3.0.0/api.html#dynesty.dynesty.DynamicNestedSampler
- Parameters:
-
nlive (int) – Number of live points used during the inital nested sampling run
history_filename (str) – Path to save the history. Defaults to None
kwargs (dict) – Additional keyword arguments - must be same name and type as paramters in constructor of the dynesty.DynamicNestedSampler class. Defaults to the values used by dynesty.
- class threeML.bayesian.dynesty_sampler.DynestyNestedSampler(likelihood_model=None, data_list=None, **kwargs)[source]
-
Bases:
UnitCubeSampler- sample(quiet: bool = False, **kwargs)[source]
-
Sample using the Dynesty NestedSampler class
- Parameters:
-
quiet (bool) – verbosity. Defaults to False.
kwargs (dict) – Additional keywords that get passed to the run_nested() function.
- Return type:
- Returns:
- setup(nlive: int = 500, bound: Literal['multi', 'single', 'none', 'balls', 'cubes'] | None = 'multi', history_filename: str | None = None, **kwargs)[source]
-
Setup the Dynesty nested sampler. All available parameters can be found in the respective version of https://dynesty.readthedocs.io/en/v3.0.0/api.html#dynesty.dynesty.NestedSampler
- Parameters:
-
nlive (int) – Number of live points. Defaults to 500.
bound – Method to approximately bound the prior using the current set of live points. Options are “multi”, “single”, “none”, “balls” or “cubes”. Defaults to “multi”.
history_filename (str) – Path to save the history. Defaults to None
kwargs (dict) – Additional keyword arguments - must be same name and type as paramters in constructor of the dynesty.NestedSampler class. Defaults to the values used by dynesty.