struct gpr::optim::SmoothedCurvatureSpectrum¶
Overview¶
Posterior of the Hessian spectrum from the surrogate prior and the measured columns (Max-and-Smooth, Hrafnkelsson et al. More…
#include <gpr/optimization/SmoothedCurvatureSpectrum.h>
struct SmoothedCurvatureSpectrum {
// fields
bool valid = false;
Eigen::Index local_samples = 0;
Eigen::VectorXd curvatures;
Eigen::VectorXd mean_curvatures;
Eigen::MatrixXd modes;
Eigen::VectorXd spreads;
Eigen::VectorXd measured_spreads;
Eigen::VectorXd floors;
Eigen::MatrixXd hessian;
Eigen::MatrixXd measured_span;
double prior_absolute_variance = std::numeric_limits<double>::quiet_NaN();
double prior_relative_variance = std::numeric_limits<double>::quiet_NaN();
double prior_coupling_variance = std::numeric_limits<double>::quiet_NaN();
double stencil_inflation = std::numeric_limits<double>::quiet_NaN();
};
Detailed Documentation¶
Posterior of the Hessian spectrum from the surrogate prior and the measured columns (Max-and-Smooth, Hrafnkelsson et al. 2021, doi:10.1214/20-BA1219; scripts/derive_smoothed_index_certificate.py). The prior is a Gaussian on symmetric matrices around the surrogate Hessian whose error is an eigenvalue error in the surrogate’s own eigenbasis (variance v_abs + v_rel lambda^2) plus a coupling matrix of independent entries (variance v_cpl), the three variances fitted from the joint likelihood of the measured entries. Every measured column is a set of entry observations whose variances are the stencil’s own estimates, plus half the squared asymmetry of the two measurements of every doubly measured entry on each of them. The posterior retains the cross-entry covariance of the eigenvalue errors. The spreads are sampled posterior standard deviations of the eigenvalues; the floors are the spreads that would remain once every entry has been measured from both of its columns at the best precision any entry has reached, the part no further column can remove. The reported inflation is the largest column factor.
Fields¶
Eigen::Index local_samples = 0
Spectrum samples evaluated by this process.
Eigen::VectorXd curvatures
Posterior mean of the k-th smallest eigenvalue, from samples of the entrywise posterior; level repulsion from uncertain entries shifts the low end down, which the eigenvalues of the mean matrix (~mean_curvatures~) do not show.
Eigen::VectorXd measured_spreads
Spread from the measured entries’ stencil errors alone, the unmeasured entries held at the prior mean: what refinement, not another column, would have to remove.
double prior_absolute_variance = std::numeric_limits<double>::quiet_NaN()
Fitted prior variances of the surrogate’s error E = sum_k e_k v_k v_k^T + C in the surrogate’s eigenbasis (v_k, lambda_k): an eigenvalue error e_k of variance v_abs + v_rel lambda_k^2 and a coupling matrix C of independent entries with variance v_cpl (half off the diagonal). Eigenvalue errors do not build a random-matrix bulk; only the couplings do, at their own, separately fitted scale.