Module function to return a record of model parameter values at the end of each iteration of the fitting process.
Struct_Type get_record()
Error Return Value: NULL
The RECORD command saves the best-fit model values at the end
of each iteration during fits. For instance, if a particular fit with the
POWELL optimization method took 14 iterations, then 14 values are
recorded for each free parameter. Also saved is the statistic value at
the end of each iteration. The output of get_record
is a S-Lang variable of Struct_Type, containing this information.
There are three fields in the output structure:
- name: a String_Type array of length M, where M is the number
of free model parameters. This array contains the parameter
names.
- val: a Double_Type array of length
M x N, where N
is the number of iterations through parameter space during the
fitting process. This array records the value of each free model
parameter at the end of each step through parameter space.
- stat: a Double_Type array of statistic values
of length N. This array records the value
of the fit statistic at the end of each step through parameter
space.
See the related Sherpa command
RECORD
for more information.
sherpa> record
sherpa> fit
...
sherpa> foo = get_record()
sherpa> print(foo)
name = String_Type[4]
val = Double_Type[4,14]
stat = Double_Type[14]
sherpa> variable a = foo.val[0,*]
sherpa> () = curve(a,foo.stat)
- chandra
-
guide
- sherpa
-
get_analysis,
get_arf_axes,
get_axes,
get_coord,
get_data,
get_energy_axes,
get_errors,
get_filter,
get_filter_expr,
get_fit,
get_fluxed_spectrum,
get_ftest,
get_metadata,
get_photon_axes,
get_photon_energy_axes,
get_photon_wave_axes,
get_qvalue,
get_raw_axes,
get_source,
get_statistic,
get_stats,
get_syserrors,
get_wave_axes,
get_weights,
record,
save,
write
|