#include <gpr/neb/Session.h>
Classes | |
| struct | IndexedObservation |
| struct | SurrogateFingerprint |
| struct | ImageModel |
| struct | LocalKernelSeed |
| class | ModelLease |
| class | PolicyScope |
Public Types | |
| using | AfterInitialise |
Public Member Functions | |
| void | setSecantHessianConfig (const optim::SecantHessianConfig &config) |
| template<class Measure> | |
| bool | purchaseSecantConsistencyProbe (Measure &&measure) |
| const optim::SecantHessian & | globalSecantHessian () const noexcept |
| const optim::SecantHessian * | imageSecantHessian (int image_idx) const noexcept |
| void | noteTrueForceSecant (int image_idx, const Eigen::VectorXd &positions, double energy, const Eigen::VectorXd &gradient) |
| True-force secant only. Training retention is unchanged. | |
| std::size_t | secantReplaySize () const noexcept |
| Samples kept so reconfigure can rebuild per-image secant seeds. | |
| std::size_t | secantReplayTrainingRows () const noexcept |
| Replay samples that record an admitted training row. | |
| bool | secantReplayHoldsTrainingRow (const Eigen::VectorXd &position) const |
| True when an admitted-row sample still holds ~position~. | |
| optim::SecantCurvatureCounts | secantCounts () const |
| void | addSecantCounts (const optim::SecantCurvatureCounts &extra) |
| SharedParameterState | sharedParameterState () const |
| bool | sharesGlobalHyperparameters (const gpr::GaussianProcessRegression &model) const |
| std::uint64_t | imageModelSurrogateRevision (int image_idx) const |
| std::uint64_t | trainingRevision () const noexcept |
| std::uint64_t | globalModelSurrogateRevision () const |
| SurrogateFingerprint | surrogateFingerprint (int owner) const |
| int | mmfModelOwner (int image_idx, bool dimer_use_global_gp) const |
| SurrogateFingerprint | mmfSurrogateFingerprint (int image_idx, bool dimer_use_global_gp) const |
| void | setLikelihoodNoiseFloorRms (const double *noise_rms) noexcept |
| void | setRefitTrainingRevisions (std::uint64_t revisions) noexcept |
| std::uint64_t | refitTrainingRevisions () const noexcept |
| std::uint64_t | surfaceEpoch () const noexcept |
| void | refreshLikelihoodNoiseFloor () |
| void | initialise () |
| bool | applySeededModel () |
| void | setAfterInitialise (AfterInitialise hook) |
| int | priorObservations () const noexcept |
| Rows loaded from a seed file. Not an oracle-call count. | |
| void | notePriorObservations (int count) noexcept |
| void | noteLocalKernelSeed (double signal_variance, double length_scale) noexcept |
| const LocalKernelSeed & | localKernelSeed () const noexcept |
| void | noteExternalHyperparameterFit () noexcept |
| bool | updateFrozenEnvironment (const gpr::Coord &band) |
| void | initializePerImage (int n_images) |
| int | boundActiveSetToBand (const gpr::Coord &band_positions, Eigen::Index max_rows) |
| double | observationResolutionFloor () const |
| double | nearestTrainingDistance (const Eigen::VectorXd &positions) const |
| void | appendObservation (const Eigen::VectorXd &positions, double energy, const Eigen::VectorXd &gradient, ObservationRetention retention=ObservationRetention::RecordAcquisition, optim::SecantAccounting secant_accounting=optim::SecantAccounting::Count) |
| void | setEndpointSymmetry (EndpointSymmetry symmetry) |
| const EndpointSymmetry & | endpointSymmetry () const noexcept |
| long | symmetryRowsAdmitted () const noexcept |
| long | symmetryRowsRejected () const noexcept |
| void | setResolutionDedup (bool on) noexcept |
| bool | withinTrainingResolution (const Eigen::VectorXd &positions) const |
| long | resolutionDedupRejected () const noexcept |
| int | admitObservation (const Eigen::VectorXd &positions, double energy, const Eigen::VectorXd &gradient, optim::SecantAccounting secant_accounting=optim::SecantAccounting::Count) |
| void | appendSymmetryImage (int source_row, const Eigen::VectorXd &positions, double energy, const Eigen::VectorXd &gradient) |
| void | syncTrainingMultiplicity () |
| void | noteExternalTrainingEdit () noexcept |
| void | markCurrentTrainingRevisionRetainedByPolicy (const policy::TrainingPolicy *policy) noexcept |
| bool | retainTrainingRowsForPolicy (const policy::TrainingPolicy &policy) |
| bool | addVirtualObservation (const Eigen::VectorXd &positions, double retire_radius) |
| void | retireVirtualObservationsNear (const Eigen::VectorXd &positions) |
| void | syncVirtualNoiseTag () |
| gpr::Observation | composedTrainingObs () const |
| void | appendObservation (int image_idx, const Eigen::VectorXd &positions, double energy, const Eigen::VectorXd &gradient, ObservationRetention retention=ObservationRetention::RecordAcquisition, optim::SecantAccounting secant_accounting=optim::SecantAccounting::Count) |
| bool | attachImageObservation (int image_idx, int global_row_index) |
| void | appendCurrentChainObservation (int image_idx, const Eigen::VectorXd &positions, double energy, const Eigen::VectorXd &gradient, ObservationRetention retention=ObservationRetention::RecordAcquisition, optim::SecantAccounting secant_accounting=optim::SecantAccounting::Count) |
| void | recordCurrentChainCertificate (int image_idx, const Eigen::VectorXd &positions) |
| void | recordCurrentChainCertificate (int image_idx, const Eigen::VectorXd &positions, double energy, const Eigen::VectorXd &gradient) |
| bool | currentChainCertificateMatchesGeometry (int image_idx, const Eigen::VectorXd &positions) const |
| std::optional< IndexedObservation > | currentChainObservation (int image_idx, const Eigen::VectorXd &positions) const |
| bool | hasCurrentChainCertificate (int image_idx, const Eigen::VectorXd &positions) const |
| void | setImageNeighborhood (int i, const std::vector< int > &emd_indices, const Eigen::VectorXd *image_position=nullptr) |
| std::vector< uint64_t > | selectArchivedNeighbors (const std::vector< int > &kept, const Eigen::VectorXd *image_position, Eigen::Index D) |
| bool | setImageInternalCoordinateChart (int i, std::shared_ptr< const gpr::geometry::InternalCoordinateChart > chart) |
| bool | setGlobalInternalCoordinateChart (std::shared_ptr< const gpr::geometry::InternalCoordinateChart > chart) |
| void | clearGlobalInternalCoordinateChart () |
| const std::shared_ptr< const gpr::geometry::InternalCoordinateChart > & | globalInternalCoordinateChart () const noexcept |
| double | globalInternalCoordinateLengthScale () const noexcept |
| bool | setBandGeodesicReferencePath (const gpr::Coord &reference_path) |
| bool | setImageGeodesicReferencePath (int i, const gpr::Coord &reference_path) |
| bool | refitImageGP (int i) |
| void | ensureSingletonForGlobal () |
| bool | ensureSingletonForImage (int i) |
| void | markModelMaterialized (int owner, const Eigen::VectorXd &theta, const SharedParameterState &shared_state) |
| ModelLease | acquireGlobalModel () |
| ModelLease | acquireImageModel (int i) |
| bool | imageModelEligibleForPrediction (int i) const |
| void | predictAtImage (int i, gpr::Observation &probe) |
| void | observationVarianceAtImage (int i, gpr::Observation &probe) |
| template<typename Use> | |
| void | withImageChartFallback (int i, Use &&use) |
| template<typename Use> | |
| void | withImageModel (int i, Use &&use) |
| void | compactAfterRowRemoval (int removed_row) |
| bool | rollbackTrainingObservations (Eigen::Index row_count) |
| void | appendIndexedObservations (const std::vector< IndexedObservation > &observations) |
| bool | rollbackTrainingObservationsRetaining (Eigen::Index row_count, const std::vector< IndexedObservation > &retained_observations) |
| int | pruneTrainingObservationsAdaptive (const gpr::Coord &band_positions) |
| int | pruneTrainingObservationsToBudget (const gpr::Coord &band_positions, Eigen::Index max_rows) |
| int | pruneLeastInfluentialRow (const gpr::Coord &band_positions, bool ignore_noise) |
| int | pruneImageModelsAdaptive (const gpr::Coord &band_positions) |
| bool | refitGP (bool reinit_seeds) |
| const policy::PolicyContext * | activePolicyContext () const noexcept |
| void | publishPolicyProgress (int iteration, int oracle_calls, int refits, int training_size) noexcept |
| bool | hyperparametersNeedRefit () const noexcept |
| bool | refitGPIfTrainingChanged (bool reinit_seeds) |
| bool | wouldRefitAtNextRefresh () const noexcept |
| void | refreshCovarianceCache () |
| bool | conditionGPOnConsistentRows (const gpr::Observation &acquired, ConvergenceNormType force_norm, Eigen::Index max_rows=0, double force_tolerance=std::numeric_limits< double >::infinity(), gpr::GaussianProcessRegression::RefitTrustReport *trust_report=nullptr) |
| void | setEvidenceRefitTrigger (bool enabled) noexcept |
| bool | evidenceRefitTrigger () const noexcept |
| double | acquiredEvidenceNats () const noexcept |
| bool | acquiredEvidenceRequestsRefit (double batch_nats) noexcept |
| bool | conditionGPOnResolvedRows (const gpr::Observation &acquired, ConvergenceNormType force_norm, Eigen::Index max_rows, double force_tolerance) |
| void | conditionGPOnTrainingData () |
Static Public Member Functions | |
| static int | selectMmfModelOwner (bool dimer_use_global_gp, bool image_model_eligible, int image_idx) |
| static bool | integratesHyperparameters (const gpr::GaussianProcessRegression &model) |
Shared GP + training data state for an active-learning saddle search session. Caller-owned, passed by pointer to ~gpNEB~ and ~AtomicDimer~ entry points.
Two GP tiers live here:
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
Add a batch's evidence to the running sum. True when the sum reaches one nat, the amount a refit can learn about theta; the sum then restarts at the next fit and is left unchanged here.
Definition at line 3470 of file Session.h.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlinenodiscardnoexcept |
|
inline |
A dimer that owns its surrogate passes its full counts. A dimer leasing this session's GP passes the ledger only; the shared GP's quadratic-mean uses are already on gp.
Definition at line 406 of file Session.h.
|
inline |
Pin the posterior toward the prior at ~positions~ with a conditioning-only virtual observation (targets = prior mean and prior gradient there, residual zero under the model's own prior-mean subtraction). Skipped when a real or virtual row already sits within ~retire_radius~ (coordinate norm): a real row means the model has genuine information there; a virtual one means the pin already exists. Bounded at ~kMaxVirtualObservations~ rows, oldest replaced first. Returns true when a row was inserted; the caller re-conditions via ~refreshCovarianceCache~.
Definition at line 1860 of file Session.h.
|
inline |
The row holding positions after a merge or an append, or -1 when the resolution gate refused it.
Definition at line 1671 of file Session.h.
|
inline |
Append a force-quality observation at the live chain geometry and bind its certificate to that image and position. The row is durable because path certificates must survive restart and covariance refresh.
Definition at line 1994 of file Session.h.
|
inline |
Definition at line 2895 of file Session.h.
|
inline |
Append one observation row to ~training_obs~. Mirrors the internal ~appendObservation~ helper in ~GPNEB.cpp~; lives here so the controller can use it directly without leaking that helper. Every distinct oracle acquisition is a joint energy-and-force observation and is retained in full.
Definition at line 1574 of file Session.h.
|
inline |
Dual-update overload: append to the global ~training_obs~ AND to image ~image_idx~'s local training set. The per-image set drives ~predictAtImage(image_idx, ...)~ once its direct row count crosses the ~min_per_image_n_train~ threshold; below threshold those calls fall through to the global ~gp~. Out-of-range ~image_idx~ (or per-image storage uninitialised) just degenerates to a global-only append, matching the single-argument overload.
Definition at line 1941 of file Session.h.
|
inline |
Enter the symmetry image of the row at source_row. A repeated image merges like a repeated draw, which keeps it the image of the source row's count-weighted target. The resolution gate applies whatever –gp-resolution-dedup says: the image of a geometry the symmetry fixes, the saddle among them, lands on its source to rounding, and a derived row inside the model's resolution of a training row adds nothing.
Definition at line 1718 of file Session.h.
|
inline |
Install a warm-start kernel after the search has applied its model profile and pair cutoff. initialise() leaves the GP on the profile default, so the saved kernel would not match yet. False when this search had no seed or the seed hook refused to install the kernel.
Definition at line 1267 of file Session.h.
|
inlinenodiscard |
Bind an acquired canonical row to an image without treating its reuse as another draw from the oracle. Image targets use the canonical mean.
Definition at line 1977 of file Session.h.
|
inline |
Retain band support and acquired corrections within a row budget. A sweep of recent acquisitions protects rejected trial and dimer observations outside the retained band. Each band image then reserves its nearest row in the prediction kernel's metric. Among the other rows the one whose removal changes the posterior mean least in the kernel norm is dropped first; the observation archive is intact.
Definition at line 1406 of file Session.h.
|
inline |
Definition at line 2349 of file Session.h.
|
inline |
|
inlinenodiscard |
~training_obs~ with the virtual rows appended, for covariance conditioning and prediction. Hyperparameter fitting keeps using ~training_obs~ directly.
Definition at line 1922 of file Session.h.
|
inline |
Condition acquired rows when their forces agree with the proposing posterior. The caller appends them to training_obs without conditioning the GP first, so the comparison uses predictions made without the rows. Exceeding the row ceiling requires pruning and a full refit.
Definition at line 3411 of file Session.h.
|
inline |
Assimilate a statistically consistent measurement, then require its conditioned force error and uncertainty to resolve the physical scale. A broad predictive distribution can narrow when the measured row is added; broad uncertainty alone is not evidence against the kernel. False requests a refit and may leave the new rows conditioned.
Definition at line 3483 of file Session.h.
|
inline |
Condition every retained observation at the fitted kernel parameters. The fitted training revision remains unchanged so a continued search can distinguish posterior conditioning from hyperparameter fitting.
Definition at line 3502 of file Session.h.
|
inlinenodiscard |
Definition at line 2045 of file Session.h.
|
inlinenodiscard |
Definition at line 2056 of file Session.h.
|
inlinenodiscardnoexcept |
|
inline |
Ensure the global ~gp~ owns the singleton. Cheap when already active with a usable posterior; refactorises the global K when the recorded owner has lost the process-wide factor or when switching from a per-image owner. Call before any ~gp.calculate*~ or any ~gp~ predict that needs the cached factor.
Definition at line 2515 of file Session.h.
|
inlinenodiscard |
Ensure image ~i~'s local GP owns the singleton, refitting on demand. Cheap when already active; otherwise re-syncs theta from the global and refactorises the per-image K. Call before any ~image_models[i].gp()->calculate*~ predict.
Definition at line 2551 of file Session.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
Definition at line 1048 of file Session.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
Definition at line 2081 of file Session.h.
|
inlinenodiscardnoexcept |
A covariance refresh can condition the current theta on new rows, but only ~refitGP~ calibrates theta against those rows. This predicate keeps the two states distinct for phases that append data between outer-loop refits.
Definition at line 3292 of file Session.h.
|
inlinenodiscard |
Definition at line 2797 of file Session.h.
|
inlinenodiscard |
Definition at line 1030 of file Session.h.
|
inlinenodiscardnoexcept |
|
inline |
Idempotent: build ~gp~ + ~atoms_config~ from ~gp_setup~. After this the GP is ready for ~setHyperparameters~ + ~optimize~ but holds no training data yet.
Definition at line 1254 of file Session.h.
|
inline |
Allocate per-image local GPs sized to the NEB chain. Each local GP gets the same kernel setup as the global ~gp~ (same ~gp_setup~ -> identical kernel functions / atoms config) but starts with an empty training set. Idempotent: redundant calls with the same ~n_images~ are no-ops; resizing to a different chain length blows away the previous per-image state.
Definition at line 1367 of file Session.h.
|
inlinestaticnodiscard |
Definition at line 1013 of file Session.h.
|
inlinenodiscardnoexcept |
|
inlinenoexcept |
|
inline |
Definition at line 2592 of file Session.h.
|
inlinenodiscard |
Definition at line 1080 of file Session.h.
|
inlinenodiscard |
Definition at line 1093 of file Session.h.
|
inlinenodiscard |
Nearest training row to positions, in the metric the floor is stated in.
EMD, not a Cartesian norm. The floor above is the dimer's, and the dimer compares it against dist_emd; the archive's own neighbourhood selection uses dist_emd too. A Cartesian norm would be a different metric wearing the same threshold, and it would also call two configurations far apart when they differ only by relabelling equivalent atoms.
Definition at line 1555 of file Session.h.
|
inlinenoexcept |
applySeededModel() installed hyperparameters for the rows held now. Later appends still request a refit.
Definition at line 1325 of file Session.h.
|
inlinenoexcept |
|
inlinenoexcept |
Definition at line 1307 of file Session.h.
|
inlinenoexcept |
|
inline |
|
inlinenodiscard |
Spacing below which a new row carries no information the model can use, taken from the model's own state rather than set as a number.
This is the dimer's information floor, d = l * sqrt(noise/magn) / 2: the posterior curvature recoverable from observations spaced d apart halves there, so rows closer than that add no curvature information at the live noise level and only degrade conditioning. The dimer has bounded itself with it for a while; GPNEB.h says in as many words that the band path needs the same and does not have it.
Returns a non-positive value when the model cannot state one yet, in which case the caller admits the row.
Definition at line 1530 of file Session.h.
|
inline |
Per-image joint energy-and-gradient variance with global fallback. The returned Observation carries every channel used by acquisition.
Definition at line 2819 of file Session.h.
|
inline |
Per-image predict with global fallback. Returns the predicted (energy, gradient) in ~probe~. If image ~i~'s local set has at least ~min_per_image_n_train~ neighbourhood rows the call goes through the local GP; otherwise it routes through the global ~gp~.
|
inlinenodiscardnoexcept |
|
inline |
Per-image adaptive pruning across every activated single-image GP: each model prunes against its own band point only. The global set stays as the double-GP concept demands – the global model hands over to the single-image ones, and each of those conditions on an adaptively pruned local set.
Definition at line 3089 of file Session.h.
|
inline |
Remove the single least influential row. ignore_noise drops it regardless of the one-sigma test, which is what a budget needs: the question there is not whether the row is redundant but whether it is the least useful of the ones that no longer fit.
Definition at line 2979 of file Session.h.
|
inline |
Adaptive pruning: drop training observations whose removal moves the posterior energy and every Cartesian force at every band point by less than the likelihood noise. The influence is the exact block downdate (see ~GaussianProcessRegression::observationBandInfluence~ and scripts/derive_adaptive_pruning_influence.py), so the threshold is a unit comparison against noise rather than a tuned constant: a row that cannot move any band prediction by one sigma carries no information the band posterior uses, while it still costs O(n^3) in every later refit.
Per-image models hold global row indices, so every removal is mirrored through ~ImageModel::compactAfterRowRemoval~, which drops references to the removed row and shifts the rest down. Removals run highest index first so earlier compactions never disturb the indices still to be removed. Returns the number of pruned observations.
Definition at line 2935 of file Session.h.
|
inline |
Prune down to a row budget, least influential first.
The threshold prune below removes a row only when it moves the band by less than one likelihood sigma. On these runs that never holds: no [prune] line appears in any campaign log while the training set climbs past 150 observations. Nothing is redundant by that test, so nothing is dropped, and the set grows without bound.
That is what makes an outer iteration cost grow: the kernel order is the observation count times (1 + 3 natoms), the append is two O(m^3) steps, and summing that over a run is quartic in the outer count. A budget converts it to linear.
Influence is recomputed between removals for the reason the threshold prune states: deleting a row changes what every other row is worth, so a batch decided against one stale vector collapses correlated groups. That costs an influence evaluation per removal, which is cheap beside the factorisation it saves.
Definition at line 2960 of file Session.h.
|
inlinenoexcept |
Definition at line 3281 of file Session.h.
|
inline |
Compare the fitted GP Hessian action with the latest true-force secant. A disagreement buys one forward force probe. measure evaluates that probe and retains it, and returns false when the oracle budget or the oracle itself did not deliver it; that probe is not counted.
Definition at line 303 of file Session.h.
|
inline |
Definition at line 2010 of file Session.h.
|
inline |
Definition at line 2029 of file Session.h.
|
inline |
Convenience: refit hyperparameters then optimize. ~reinit_seeds~ controls whether ~setHyperparameters~ re-derives seeds from data statistics (cold) or warm-starts from the previous fit. See ~GPNEB.cpp~ for the cold/warm rationale. Returns false when a training policy keeps the hyperparameters and only the factor is updated.
Definition at line 3111 of file Session.h.
|
inline |
Warm-refit only when the training set changed since the fitted theta. Returns true when a refit was performed.
Definition at line 3301 of file Session.h.
|
inline |
Refit image ~i~'s local GP on its current training data, with theta inherited from the global ~gp~. Compatible EB and Laplace models share its parameter measure and condition on local rows. Distinct conditioning sets can give different boundary predictions. Returns false when no valid local posterior can be materialized.
Definition at line 2432 of file Session.h.
|
inlinenodiscardnoexcept |
|
inline |
Rebuild ~gp~'s internal model state (R_matrix, R_indices, energy_and_gradient, distributed Cholesky factor, posterior weights) from the current ~training_obs~ WITHOUT re-running hyperparameter optimisation. Use after a sibling phase (e.g. OCINEB MMF burst) mutates ~training_obs~ between outer-iter retrains: the burst's internal AtomicDimer GP factorises a different-sized covariance into the singleton ~DistributedState~ cache, so ~gp~'s distributed L is stale by the time the next NEB iter probes variance / runs a solve. ~updateModelWithFullData~ reassembles R_matrix and calls ~decomposeCovarianceMatrix~, which repopulates the singleton cache with ~gp~'s factor at the new training size. Cheaper than ~refitGP~ (no SCG NLML evaluations); the next outer iter's natural retrain handles hyperparameter updates.
Definition at line 3344 of file Session.h.
|
inline |
Reduce the rank-owned noise floor into the shared value the materialise paths read. This call is collective: every rank must reach it, so it belongs at a point in the outer loop that no rank-local branch can skip – after an oracle batch, never inside a per-image or owned-image block.
Definition at line 1245 of file Session.h.
|
inlinenodiscardnoexcept |
|
inline |
Apply ~policy.retain_training_rows~. An identity list does nothing. Any other list rebuilds the training set, the multiplicity, every image index map, and the factor at the current hyperparameters. The fitted revision is left alone: theta was not re-optimised.
Definition at line 1777 of file Session.h.
|
inline |
Drop every virtual row whose retire radius covers ~positions~. Called on each real append: a genuine measurement supersedes the prior pin in its neighbourhood.
Definition at line 1893 of file Session.h.
|
inline |
Remove speculative suffix rows from the global training buffer and compact every per-image view that references those rows.
Definition at line 2874 of file Session.h.
|
inline |
Definition at line 2905 of file Session.h.
|
inlinenodiscard |
|
inlinenodiscard |
True when an admitted-row sample still holds ~position~.
Definition at line 385 of file Session.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
Archived-row candidates for one image: rows in the corpus that no longer coincide with any active training row and whose EMD to the image position is within the admission radius (the image's farthest kept training row; unbounded while no rows are kept). At most ~per_image_knn~ rows, nearest first.
Definition at line 2188 of file Session.h.
|
inlinestaticnodiscard |
|
inline |
Runs from applySeededModel(), after the search profile and the pair cutoff are on the GP. A warm start installs saved hyperparameters here.
Definition at line 1282 of file Session.h.
|
inline |
Supply the GLOBAL GP with a band reference path for the soft geodesic heat prior, without touching per-image local models. The additive amplitude is evidence-fitted at each ~refitGP~ (a zero optimum retains the base covariance; see docs/orgmode/explanation/theory/soft_geodesic_heat_kernel.org and scripts/derive_soft_geodesic_energy_force_gp.py).
Definition at line 2392 of file Session.h.
|
inline |
Exchange symmetry of the band's endpoints. While it is set, every admitted oracle row also enters at its symmetry image, which is an exact observation of the same potential (see ~EndpointSymmetry~). The image is not an acquisition: it never reaches the observation archive, and an archived row regenerates it on adoption. Rows already in the training set enter at their images when it is set, unless the image is already a row. An empty symmetry clears it.
Definition at line 1601 of file Session.h.
|
inlinenoexcept |
|
inline |
Anchor the GLOBAL Sexpat energy-force tensor on a nonredundant molecular tangent chart. The isotropic intrinsic length is matched to the current global force variance. A missing metric or an invalid chart leaves Cartesian Sexpat in place; a heat prior composes with it.
Definition at line 2316 of file Session.h.
|
inline |
Supply image ~i~'s local GP with the live whole-band geometry used to construct its soft geodesic heat covariance. The path amplitude is fitted from this image's joint energy-gradient observations at refit.
Definition at line 2410 of file Session.h.
|
inline |
Anchor image ~i~'s local GP to a nonredundant molecular tangent chart. The intrinsic scalar length is inherited by matching the fitted global GP's tangent force variance. An unavailable global metric clears a stale chart and leaves prediction on the ordinary global fallback.
Definition at line 2294 of file Session.h.
|
inline |
Rebuild image ~i~'s local training set as the trajectory-aware union of two index sets over the global ~training_obs~:
The EMD set alone is a recent spatial cluster: for a climbing image it is the last few uphill steps, and a GP fit on that extrapolates the ascent without bound. Unioning the image's own oracle history keeps the trajectory that bounds the climb. Recomputed every outer iteration; a no-op when the union already matches the slot's selection, otherwise the row set changed and the cached per-image factor is invalidated so the next predict refits. image_position, when given, additionally re-selects archived rows: acquisitions the global pruner removed from ~training_obs~ but which sit EMD-nearer to this image than its farthest kept training row come back from the readcon-db corpus. The double-GP sets are disjoint views; the archive is what makes that divergence non-destructive.
Definition at line 2110 of file Session.h.
|
inlinenoexcept |
|
inlinenoexcept |
SCG refit cadence: full hyperparameter refits run every this many training-set appends, for every model profile. Default 5 is the Baker-measured value; ActiveGP makes the knob explicit. Zero means refit on every refresh.
Definition at line 1165 of file Session.h.
|
inlinenoexcept |
Admit rows only when they are farther apart than the model can resolve. Off by default: it declines data, and what that costs in acquisitions wants measuring before it is anyone's default.
|
inline |
Configure true-gradient secants independently of GP row retention. Changing the method rebuilds the global stream and every per-image stream from the measurements already consumed. Rows retained before any secant existed have no image index, so they enter the global stream only.
Definition at line 253 of file Session.h.
|
inlinenodiscard |
Definition at line 999 of file Session.h.
|
inlinenodiscard |
Definition at line 1021 of file Session.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscard |
Definition at line 1070 of file Session.h.
|
inlinenodiscardnoexcept |
Symmetry-image rows admitted, and those refused because a training row already lay within the model's resolution of the image, or within the operation's own (~EndpointSymmetry::resolution~).
|
inlinenodiscardnoexcept |
|
inline |
|
inline |
Push the current virtual-geometry set and its noise into the likelihood so every subsequent covariance assembly tags the matching rows. Real-only assemblies contain no matching geometry and stay bit-identical.
Definition at line 1913 of file Session.h.
|
inlinenodiscardnoexcept |
|
inline |
Select one frozen environment over every image, retaining physical observations and invalidating models that depend on its pair features.
Definition at line 1335 of file Session.h.
|
inline |
Run ~use~ on image ~i~'s model, or on the global model when the image has too few rows of its own. A chart is built from the primitives that are defined along the path when it is attached; a training row or a probe that puts three atoms of a dihedral on a line leaves that primitive undefined, and the chart no longer describes the region the model covers. The image then drops its chart and the call runs again on the Cartesian pair kernel. Only an undefined primitive is recovered; any other error, and any error on an image without a chart, passes on unchanged.
Definition at line 2836 of file Session.h.
|
inline |
Run ~use~ on image ~i~'s model, dropping a chart that is undefined at a row or probe and running again on the Cartesian pair kernel.
Definition at line 2849 of file Session.h.
|
inlinenodiscard |
True when ~appendObservation~ would refuse a row at positions under the resolution gate: a training row already lies closer than the model's own resolution floor, so a measurement there is informationless and the posterior at positions is the data. Certificates that demand "current oracle data" at an image must accept this state as observed, or they wait forever for a row the session will never store.
Definition at line 1648 of file Session.h.
|
inlinenodiscardnoexcept |
True when the next ~refreshCovarianceCache~ would run a full hyperparameter refit rather than a fixed-theta rematerialize.
Pruning is only free at such a point. A refit rebuilds the factorization from scratch anyway, so dropping rows costs nothing extra there; dropping them between refits instead turns the next rematerialize from a suffix append into a full O(n^3) rebuild, because the training matrix is no longer an extension of the one the cached factor was built on.
Definition at line 3317 of file Session.h.
| gpr::AtomsConfiguration gpr::neb::ActiveLearningSession::atoms_config |
| bool gpr::neb::ActiveLearningSession::ci_active_at_outer_start = false |
| int gpr::neb::ActiveLearningSession::ci_stable_outer_count = 0 |
| std::vector<IndexedObservation> gpr::neb::ActiveLearningSession::current_chain_certificates |
| EndpointSymmetry gpr::neb::ActiveLearningSession::endpoint_symmetry_ |
| gpr::GaussianProcessRegression gpr::neb::ActiveLearningSession::gp |
| std::function<void(gpr::InputParameters&, gpr::AtomsConfiguration&)> gpr::neb::ActiveLearningSession::gp_setup |
| std::vector<ImageModel> gpr::neb::ActiveLearningSession::image_models |
| bool gpr::neb::ActiveLearningSession::initialised = false |
| gpr::InputParameters gpr::neb::ActiveLearningSession::input_parameters |
| double gpr::neb::ActiveLearningSession::last_max_chain_energy_variance |
Latest max per-image chain energy variance from the GP-NEB outer loop's acquisition probe. NaN until the first probe. The OCINEB hook compares it against the likelihood noise floor to decide whether the OIE can still supply admissible information.
| int gpr::neb::ActiveLearningSession::min_per_image_n_train = 3 |
| double gpr::neb::ActiveLearningSession::path_energy_ceiling = std::numeric_limits<double>::infinity() |
| int gpr::neb::ActiveLearningSession::per_image_knn = 10 |
Neighbourhood size for the per-image local GP: image i's local training set is the ~per_image_knn~ observations of the global ~training_obs~ nearest (EMD) to image i's current position, recomputed every outer iteration. Keying the local set on geometry rather than on the picker index keeps the per-image surrogate tracking the moving chain: an image picks up its chain neighbours' oracle calls, and a converged image is no longer conditioned on the scattered positions it has left.
| double gpr::neb::ActiveLearningSession::per_image_prior_s2_log = 0.1 |
Variance of the hierarchical-Bayes prior on the per-image log-kernel-parameters: ~log(theta_i) ~ N(log(theta_global), per_image_prior_s2_log * I)~. Default 0.1 corresponds to roughly ~30% drift around the global MAP per parameter (in linear lengthscale / magnSigma2). Without this prior, per-image SCG on 3-10 rows is unregularised and drifts to noisy local optima; the resulting inflated per-image variance stalls the NEB acquisition picker in Phase 1. Tighter values pull per-image theta_i closer to the global anchor.
| bool gpr::neb::ActiveLearningSession::resolution_dedup_enabled_ = false |
| long gpr::neb::ActiveLearningSession::resolution_dedup_rejected_ = 0 |
| bool gpr::neb::ActiveLearningSession::stagnation_handoff = false |
The climbing-image walk has stopped improving while its true force is still above the final tolerance: a curvature-cap limit cycle that the band stall ended, or a fixed point whose granted MMF burst the adaptive bar would otherwise refuse. The next OCINEB hook keeps the flag until the dimer lease is taken, or until the certified handoff declines it. A closed information gate does not clear it. A walk that is still descending does not set it, and the 0.1 eV/A handoff bar is unchanged for that walk.
| long gpr::neb::ActiveLearningSession::symmetry_rows_admitted_ = 0 |
| long gpr::neb::ActiveLearningSession::symmetry_rows_rejected_ = 0 |
| std::vector<int> gpr::neb::ActiveLearningSession::training_multiplicity |
| gpr::Observation gpr::neb::ActiveLearningSession::training_obs |
| gpr::Observation gpr::neb::ActiveLearningSession::virtual_obs |
Conditioning-only virtual observations (Riihimaki-Vehtari style conjugate constraints). Each row sits at an internal-trust clip point with targets equal to the prior mean there, so the fitted residual is exactly zero: the posterior is pinned toward the prior at geometries the trust certifier has declared unpredictable. Rows enter covariance conditioning and prediction only – hyperparameter optimisation (SCG) and seed derivation see ~training_obs~ alone, so theta is calibrated against real oracle data. A row retires as soon as a real observation lands within its retire radius.
| double gpr::neb::ActiveLearningSession::virtual_obs_noise_sigma2 = 0.04 |
Extra heteroscedastic noise sigma^2 on virtual rows (energy in eV^2, forces in (eV/A)^2 under the raw-target classic stack). Soft pins: large against the learned data noise (~1e-3) so a pin biases the posterior toward the prior without forcing an interpolation constraint through it; hard pins bend the posterior violently between nearby data and the pin (measured: max_gp_F 27 -> 175 on 17_claisen when pinned at shared noise).
| std::vector<double> gpr::neb::ActiveLearningSession::virtual_retire_radii |