.. index:: pair: class; pot::ActiveGP .. _doxid-classpot_1_1_active_g_p: class pot::ActiveGP =================== .. toctree:: :hidden: enum_pot_ActiveGP_AcquireReason.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ActiveGP { public: // typedefs typedef std::function :ref:`OracleFn`; typedef std::function`)> :target:`AcquireHook`; typedef std::function`)> :ref:`ModelUpdateHook`; typedef :ref:`ActiveGPConfig` :target:`Config`; // enums enum :ref:`AcquireReason`; // construction :target:`ActiveGP`(std::shared_ptr<:ref:`gpr::neb::ActiveLearningSession`> session, :ref:`OracleFn` oracle, :ref:`Config` config = :ref:`Config`()); // methods std::uint64_t :ref:`modelState`() const; long :ref:`trainingSize`() const; long :ref:`oracleCalls`() const; void :target:`setAcquireHook`(:ref:`AcquireHook` hook); void :target:`setModelUpdateHook`(:ref:`ModelUpdateHook` hook); int :ref:`force`(long n_atoms, const double* positions, const int* atomic_nrs, double* forces, double* energy, double* variance, const double* box); int :ref:`forceBatch`(long n_systems, long n_atoms, const double* positions, const int* atomic_nrs, double* forces, double* energies, double* variances, const double* boxes); void :ref:`incorporate`(); }; .. _details-classpot_1_1_active_g_p: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Typedefs -------- .. index:: pair: typedef; OracleFn .. _doxid-classpot_1_1_active_g_p_1a7eec26308f5addca04d75cae479ce5c9: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef std::function OracleFn Ground truth. Returns 0 on success, positive recoverable, negative fatal, matching the engine ABI convention. .. index:: pair: typedef; ModelUpdateHook .. _doxid-classpot_1_1_active_g_p_1a6252985252930a43380e3b9654501678: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef std::function`)> ModelUpdateHook Fired after an incorporation changed the surface. Methods ------- .. index:: pair: function; modelState .. _doxid-classpot_1_1_active_g_p_1a377e1862dd7ec6b95d622ac08849c54f: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::uint64_t modelState() const Monotone surface epoch: changes only when an incorporation changes the posterior. Host caches key on this. .. index:: pair: function; trainingSize .. _doxid-classpot_1_1_active_g_p_1ae8969ac3fd7b4770ce40aaecc08b0d7f: .. ref-code-block:: cpp :class: doxyrest-title-code-block long trainingSize() const Training rows currently held. .. index:: pair: function; oracleCalls .. _doxid-classpot_1_1_active_g_p_1a81bafbb8b4bfccd79edd242ba76f52fe: .. ref-code-block:: cpp :class: doxyrest-title-code-block long oracleCalls() const Oracle calls made through this surrogate. .. index:: pair: function; force .. _doxid-classpot_1_1_active_g_p_1a802eefc37f7f1f60584ee7304cf736de: .. ref-code-block:: cpp :class: doxyrest-title-code-block int force(long n_atoms, const double* positions, const int* atomic_nrs, double* forces, double* energy, double* variance, const double* box) LOTF force. Returns 0 on success; a nonzero oracle return is propagated unchanged. .. index:: pair: function; forceBatch .. _doxid-classpot_1_1_active_g_p_1a6d55a4231619b7dc5e220ec99800a752: .. ref-code-block:: cpp :class: doxyrest-title-code-block int forceBatch(long n_systems, long n_atoms, const double* positions, const int* atomic_nrs, double* forces, double* energies, double* variances, const double* boxes) Batched channel and incorporation boundary. Every system is predicted; the least resolved one above the gate is delegated to the oracle and learned, which is OIE-class argmax-variance acquisition from inside a passive potential. Systems share one composition. .. index:: pair: function; incorporate .. _doxid-classpot_1_1_active_g_p_1a575976bda20b9ad5327c006388bada05: .. ref-code-block:: cpp :class: doxyrest-title-code-block void incorporate() Host-requested incorporation boundary (the ABI hint channel).