.. index:: pair: struct; atmd::AtomicDimer::VarianceGateConfig .. _doxid-structatmd_1_1_atomic_dimer_1_1_variance_gate_config: struct atmd::AtomicDimer::VarianceGateConfig ============================================ .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct VarianceGateConfig { // fields double :ref:`accept_tau` = 0.0; double :ref:`accept_tau_relative` = 0.0; double :ref:`imspe_soft_threshold` = 0.0; int :ref:`imspe_history_size` = 16; bool :ref:`pre_oracle_emd_near_skip` = false; }; .. _details-structatmd_1_1_atomic_dimer_1_1_variance_gate_config: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; accept_tau .. _doxid-structatmd_1_1_atomic_dimer_1_1_variance_gate_config_1a354d7a2bf03fe5ed83cfdfbd527f229b: .. ref-code-block:: cpp :class: doxyrest-title-code-block double accept_tau = 0.0 Absolute threshold (in eV^2) below which the posterior variance at a query triggers a GP-only prediction (skipping the accurate potential call). <= 0 leaves the absolute gate disabled and defers to ``:ref:`accept_tau_relative ```. .. index:: pair: variable; accept_tau_relative .. _doxid-structatmd_1_1_atomic_dimer_1_1_variance_gate_config_1acfc3681b796c67f066588a347775132f: .. ref-code-block:: cpp :class: doxyrest-title-code-block double accept_tau_relative = 0.0 Relative threshold expressed as a fraction of the GP signal variance (magnSigma2). At gate time the effective absolute threshold is ``:ref:`accept_tau_relative ` * magnSigma2(now)``. This makes the gate system-adaptive: the same relative knob works on cuh2 (small magnSigma2) and PETMAD (larger magnSigma2) without per-fixture tuning. Active only when ``:ref:`accept_tau ` <= 0`` AND ``:ref:`accept_tau_relative ` > 0``. A sensible default for calibrated-variance modes (SVGD/LAPLACE/EB) is 1e-4 posterior standard deviation < 1% of signal standard deviation triggers the GP-only branch. .. index:: pair: variable; imspe_soft_threshold .. _doxid-structatmd_1_1_atomic_dimer_1_1_variance_gate_config_1a98f43bfa0eb97e276fb943587548623e: .. ref-code-block:: cpp :class: doxyrest-title-code-block double imspe_soft_threshold = 0.0 IMSPE soft-skip threshold. When > 0, after the variance gate would have fired the oracle (var >= accept_tau), the dimer additionally computes the force-specific IMSPE score S_F(x\*) = tr(Sigma_F) - tr(Sigma_F | E(x\*), grad E(x\*)) over the EMD-filtered recent-query ring buffer. The complete energy-gradient oracle atom conditions the force target. The oracle is suppressed (GP-mean used in place) when S(x\*) < imspe_soft_threshold: oracling at x\* would not collapse summed posterior force variance over the dimer's recent novel exploration neighborhood. The EMD dedup primary gate still catches genuinely redundant candidates. Default 0 leaves the soft gate disabled. .. index:: pair: variable; imspe_history_size .. _doxid-structatmd_1_1_atomic_dimer_1_1_variance_gate_config_1affeea831570012da145644c2a4d4cf3e: .. ref-code-block:: cpp :class: doxyrest-title-code-block int imspe_history_size = 16 Maximum size of the EMD-filtered query ring buffer used by the IMSPE soft-skip predicate. Smaller -> faster scoring but less stable estimates; larger -> better coverage of the dimer's exploration neighborhood but quadratic K_post cost. Default 16 balances both on PETMAD-scale problems where the dimer rarely probes more than a few dozen distinct geometries inside one burst. .. index:: pair: variable; pre_oracle_emd_near_skip .. _doxid-structatmd_1_1_atomic_dimer_1_1_variance_gate_config_1aacb8ac068d29fe7cee44944c63509546: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool pre_oracle_emd_near_skip = false Use the GP mean for midpoint candidates inside the EMD admission reject band instead of paying an accurate oracle call whose row cannot enter all_obs. The final convergence certificate still calls the accurate potential when the GP midpoint satisfies the force threshold.