save_stats¶
-
beast.fitting.fit.
save_stats
(stats_outname, stats_dict_in, best_vals, exp_vals, per_vals, chi2_vals, chi2_indx, lnp_vals, lnp_indx, best_specgrid_indx, total_log_norm, qnames, p)[source]¶ Save various fitting statistics to a file
Parameters: - stats_outname : str
output filename
- stats_dict_in : dict
input dictonary with ancilliary info
- best_vals : ndarray
2D
float
array of the best fit parameters- exp_vals : ndarray
2D
float
array of the expectation fit parameters- per_vals : ndarray
3D
float
array of the percentile fit parameters- chi2_vals : ndarray
1D
float
array of the chisqr values (does not include model weights)- chi2_indx : ndarray
1D
float
array of the indx in model grid of chisqr values- lnp_vals : ndarray
1D
float
array of the P(max) values (includes model weights)- lnp_indx : ndarray
1D
int
array of the indx in model grid of P(max) values- best_specgrid_indx : ndarray
1D
int
array of the indx in spectroscopic model grid of P(max) values- total_log_norm : ndarray
1D
float
array of the log of the total grid weight- qnames : list
list of the parameter names
- p : list
list of percentiles use to create the per_vals
Returns: - N/A