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, filters, wavelengths)[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
floatarray of the best fit parametersexp_vals (ndarray) – 2D
floatarray of the expectation fit parametersper_vals (ndarray) – 3D
floatarray of the percentile fit parameterschi2_vals (ndarray) – 1D
floatarray of the chisqr values (does not include model weights)chi2_indx (ndarray) – 1D
floatarray of the indx in model grid of chisqr valueslnp_vals (ndarray) – 1D
floatarray of the P(max) values (includes model weights)lnp_indx (ndarray) – 1D
intarray of the indx in model grid of P(max) valuesbest_specgrid_indx (ndarray) – 1D
intarray of the indx in spectroscopic model grid of P(max) valuestotal_log_norm (ndarray) – 1D
floatarray of the log of the total grid weightqnames (list) – list of the parameter names
p (list) – list of percentiles use to create the per_vals
- Return type:
N/A