#include <gpr/potentials/ActiveGPPotential.h>
Public Types | |
| using | Config = ActiveGPConfig |
Public Member Functions | |
| ActiveGPPotential (std::shared_ptr< gpr::neb::ActiveLearningSession > session, std::shared_ptr< rgpot::PotentialBase > oracle, Config config=Config()) | |
| std::tuple< double, rgpot::types::AtomMatrix, double > | operator() (const rgpot::types::AtomMatrix &positions, const std::vector< int > &atmtypes, const std::array< std::array< double, 3 >, 3 > &box) override |
| std::uint64_t | modelState () const noexcept |
| long | oracleCalls () const noexcept |
| long | trainingSize () const noexcept |
| void | incorporate () |
| Host-declared incorporation boundary. | |
| ActiveGP & | surrogate () noexcept |
The learning surrogate as an rgpot potential wrapping an rgpot potential.
ActiveGP already carries the learn-on-the-fly semantics, but it takes its oracle as a raw callback and answers on a raw-pointer signature, so only a caller written against gpridge can hold it. This states the same object in rgpot's own contract: it consumes a PotentialBase as the oracle and IS a PotentialBase to whoever holds it, which is what lets a host compose it – eOn selecting a backend, ASE through the rgpot bindings – without knowing a Gaussian process is involved.
The third element of the returned tuple is the posterior energy standard deviation in eV, the uncertainty scale operator() already documents. ActiveGP gates on the energy variance and writes zero to that channel whenever the oracle answered, so a zero there marks a ground-truth call rather than a confident prediction: a host reading it as confidence has the meaning backwards.
PotType has no arm for a surrogate, and minting one is a change to the shared potentials schema rather than to this file, so the type reports UNKNOWN until that lands. Hosts dispatch on the object, not on the tag.
Definition at line 38 of file ActiveGPPotential.h.
Definition at line 40 of file ActiveGPPotential.h.
| pot::ActiveGPPotential::ActiveGPPotential | ( | std::shared_ptr< gpr::neb::ActiveLearningSession > | session, |
| std::shared_ptr< rgpot::PotentialBase > | oracle, | ||
| Config | config = Config() ) |
| session | the model this surrogate learns into. |
| oracle | ground truth; held for the surrogate's lifetime. |
| config | variance gates, force certification, and refit cadence. |
Definition at line 58 of file ActiveGPPotential.cpp.
|
inline |
Host-declared incorporation boundary.
Definition at line 74 of file ActiveGPPotential.h.
|
inlinenodiscardnoexcept |
Surface epoch; changes only when an incorporation moved the posterior, so a host may key a cache on it.
Definition at line 58 of file ActiveGPPotential.h.
|
override |
Energy, forces, and posterior energy standard deviation (eV); zero marks an answer that came from the oracle.
Definition at line 72 of file ActiveGPPotential.cpp.
|
inlinenodiscardnoexcept |
Definition at line 63 of file ActiveGPPotential.h.
|
inlinenoexcept |
The acquisition channel, kept on the concrete type: PotentialBase declares no batch entry point, so a host reaching for band-wide argmax-variance selection holds this type rather than the base.
Definition at line 82 of file ActiveGPPotential.h.
|
inlinenodiscardnoexcept |
Definition at line 68 of file ActiveGPPotential.h.