kipe.results module
Results of a study, read back for analysis: the estimates of its noise realizations.
The estimation of each noise realization writes its history (kipe.estimation).
read_realizations() collects the final estimate of each realization, the filter’s
covariance of it, and the estimate at the end of each outer iteration: for the statistics of
the estimates over the noise, e.g., their spread compared with the filter’s uncertainty.
The covariances are in physical units: \(\bs{J} \bs{P}_\theta \bs{J}\), with
\(\bs{J} = \operatorname{diag}(\mathrm{d}\phi_i / \mathrm{d}\theta_i)\) at the final
estimate (kipe.parameters.Parameterization.derivative()), to first order, so that they
compare with the spread of the estimates. \(\bs{\theta}\) itself is the same for all
realizations and outer iterations, relative to the prior means.
- class kipe.results.Realizations(names: list[str], realizations: NDArray_i64, parameters: NDArray_f64, covariance: NDArray_f64, iterations: NDArray_f64)[source]
Bases:
objectThe final estimates of a study’s noise realizations, from
read_realizations().- names: list[str]
Names of the estimated parameters.
- realizations: NDArray_i64
Numbers of the realizations read, shape
(R,).
- parameters: NDArray_f64
The final estimate of each realization, as physical values, shape
(R, p).
- covariance: NDArray_f64
The filter’s covariance of each final estimate, in physical units, shape
(R, p, p).
- iterations: NDArray_f64
The estimate at the end of each outer iteration, as physical values, shape
(R, iterations, p).
- kipe.results.read_realizations(study: StudyOptions) Realizations[source]
Read the final estimates of a study’s noise realizations.
A realization whose estimation has not completed its
estimation.iterationsouter iterations, or has not run, is skipped with a warning, so that the results of a job array can be read while it runs.- Parameters:
study – the study options
- Returns:
the estimates of the realizations read
- Raises:
StudyFileError – if the study has no parameters section, a history estimates other parameters, or no realization has completed its estimation