struct funcmin::MapObjectiveConfig¶
Overview¶
Inputs for the MAP prior and barrier penalty applied to the base NLML. More…
#include <gpr/ml/MapObjective.h>
struct MapObjectiveConfig {
// fields
double signal_variance = 1.0;
double barrier_strength = 0.0;
bool use_magn_ceiling = false;
double max_log_magnSigma2 = 0.0;
bool use_tail_lower_barrier = false;
double tail_lower_barrier = -std::numeric_limits<double>::infinity();
gpr::MapPriorWeightMode weight_mode = gpr::MapPriorWeightMode::Annealed;
bool use_configured_magn_prior = false;
bool use_lognormal_magn_prior = false;
gpr::PriorBase magn_prior;
bool use_configured_lengthscale_prior = false;
gpr::PriorBase lengthscale_prior;
Eigen::VectorXd lengthscale_rho0;
Eigen::Index lengthscale_count = -1;
Eigen::VectorXd prior_weight;
std::vector<bool> active_parameters;
Eigen::VectorXd parameter_lower;
Eigen::VectorXd parameter_upper;
};
Detailed Documentation¶
Inputs for the MAP prior and barrier penalty applied to the base NLML. A GP fit holds this configuration fixed across solver changes.
Fields¶
double barrier_strength = 0.0
Already capped with min(current_barrier_strength, 0.5) by the caller.
bool use_configured_magn_prior = false
Optional configured prior parameters. When use_* is true and the corresponding scale/df are positive, the shared objective applies the gpr::prior hierarchy; otherwise the weakly-informative defaults apply.
bool use_lognormal_magn_prior = false
Opt-in log-normal on magnSigma2. Off keeps the half-Cauchy or configured half-Student-t magnitude prior. Takes precedence over use_configured_magn_prior when both are set.
Eigen::VectorXd lengthscale_rho0
Per-pairtype descriptor spread rho0_k (index k aligns with w(k+1), i.e. lengthscale_rho0(0) anchors w(1), etc.), the data’s own natural scale in descriptor units. Anchors the DEFAULT (weakly-informative, not use_configured_lengthscale_prior) Student-t lengthscale prior so it penalizes deviation of the DIMENSIONLESS ratio ell_k/rho0_k from 1, instead of the raw ell_k against an implicit unit-Angstrom scale. Empty (the default) falls back to the pre-anchor behaviour: every entry effectively uses rho0_k = 1, exactly reproducing the historical formula. A given index also falls back individually when its rho0_k entry is missing, non-finite, or non-positive (degenerate descriptor spread for that pairtype only).
Eigen::Index lengthscale_count = -1
Length-scale coordinates after the magnitude. Negative means every coordinate after the magnitude is a length scale. A learned log(sigma2) appended past this count is not a length scale.
Eigen::VectorXd prior_weight
Weight of each parameter’s prior term (empty: every weight one). A group of tied length scales shares one prior, weighted 1/k over its k members so that the penalty gradient stays equal within the group.
Eigen::VectorXd parameter_lower
Closed parameter domain, independent of the smooth prior penalties. Empty vectors impose no bounds.