tracts.driver_utils._print_optimal_values_and_likelihood#
- _print_optimal_values_and_likelihood(demographic_model, optimal_params, optimal_likelihood, remainder_parameters, ad_model_allosomes)#
Prints the final optimal parameter values and the corresponding likelihood, along with any derived parameters for the remainder (dependent) ancestry.
- Parameters:
demographic_model (
ParametrizedDemography|ParametrizedDemographySexBiased) – The demographic model for which to print the optimal parameter values and likelihood.optimal_params (
ndarray) – The final optimal parameters in physical units, as returned by the optimization process.optimal_likelihood (
float) – The likelihood corresponding to the final optimal parameters.remainder_parameters (
dict[str,float]) – A dictionary of derived parameters for the ‘remainder’ (dependent) ancestry in each parametrized population, as computed bycompute_remainder_params.ad_model_allosomes (
bool|None) – A boolean indicating whether allosomal admixture is modelled. If None, only autosomal admixture is modelled. This affects the message printed about the data used for computing the likelihood.