GWForge.population_fisher.fit¶
Maximum-likelihood fits of a population model to a set of samples.
Attributes¶
Functions¶
|
Fit a population model to samples by maximum likelihood. |
|
A plain-text table of fitted values against the values used to generate. |
Module Contents¶
- GWForge.population_fisher.fit.fit_model(model, samples, free_parameters=None, start=None, bounds=None, fixed_parameters=None)[source]¶
Fit a population model to samples by maximum likelihood.
- Parameters:
samples (dict) – Event parameters to fit to. For a fiducial, these should be all injections, not just the detected ones: the population model describes the astrophysical population, and fitting to the detected subset would absorb the selection function into the hyper-parameters.
free_parameters (sequence of str or None) – Defaults to every hyper-parameter not in
fixed_parameters.start (dict or None) – Starting point. Defaults to
model.fiducial.bounds (dict or None) – Name to
(low, high). Merged ontoDEFAULT_BOUNDS.fixed_parameters (dict or None)
- Returns:
The fitted values, merged onto the starting point, with the keys
"_success","_message"and"_mean_log_prob"describing the optimisation.- Return type:
dict