Loading...
Searching...
No Matches
OuterIterCompositionTrace.h File Reference

Composition-level per-outer-iteration snapshot for gpNEB regression. More...

#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  gpr::neb::OuterIterCompositionCertificates
struct  gpr::neb::OuterIterCompositionTraceRecord
 One outer-iteration composition snapshot. More...

Namespaces

namespace  gpr
 Gaussian-process regression, kernels, priors, and the searches that run on the surrogate.
namespace  gpr::neb
 The nudged elastic band: path, GP-NEB driver, configuration and result, acquisition, IDPP start.

Functions

std::string gpr::neb::formatCompositionTrace (const std::vector< OuterIterCompositionTraceRecord > &records)
 Canonical text serialization used by golden files and exact-match asserts.
bool gpr::neb::parseCompositionTrace (const std::string &text, std::vector< OuterIterCompositionTraceRecord > &out, std::string *error)
bool gpr::neb::writeCompositionTraceFile (const std::string &path, const std::vector< OuterIterCompositionTraceRecord > &records)
bool gpr::neb::readCompositionTraceFile (const std::string &path, std::vector< OuterIterCompositionTraceRecord > &out, std::string *error)
bool gpr::neb::compositionTracesTextuallyEqual (const std::vector< OuterIterCompositionTraceRecord > &a, const std::vector< OuterIterCompositionTraceRecord > &b)
 True when canonical serializations are identical (golden check).
bool gpr::neb::compositionTracesNumericallyClose (const std::vector< OuterIterCompositionTraceRecord > &got, const std::vector< OuterIterCompositionTraceRecord > &expected, double rtol, double atol, std::string *mismatch)

Variables

constexpr int gpr::neb::kCompositionTraceFormatVersion = 1
 Bump when the on-disk golden format changes incompatibly.

Detailed Description

Composition-level per-outer-iteration snapshot for gpNEB regression.

Captures the decision state of one outer loop iteration (oracle target, theta, barrier estimate, convergence certificates, CI index, max oracle force) without scattering printf. Opt-in via GPNEBConfig::record_composition_trace; records land in GPNEBResult::composition_trace.

Golden files use a deterministic text format (no timestamps/pointers). Regenerate with env GPR_REGEN_GOLDEN=1 when running the gtest harness.

Definition in file OuterIterCompositionTrace.h.