.. index:: pair: class; gpr::policy::VarianceThresholdPolicy .. _doxid-classgpr_1_1policy_1_1_variance_threshold_policy: class gpr::policy::VarianceThresholdPolicy ========================================== .. toctree:: :hidden: Overview ~~~~~~~~ Call the oracle only when the posterior energy variance is strictly above ``variance_threshold`` (eV^2). :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class VarianceThresholdPolicy: public :ref:`gpr::policy::TrainingPolicy` { public: // construction :target:`VarianceThresholdPolicy`(double variance_threshold); // methods double :target:`variance_threshold`() const; virtual bool :ref:`should_call_oracle`(const :ref:`SearchState`& state) const; }; Inherited Members ----------------- .. ref-code-block:: cpp :class: doxyrest-overview-inherited-code-block public: // methods virtual bool :ref:`should_call_oracle`(const :ref:`SearchState`& state) const; virtual std::vector :ref:`select_training_points`(const std::vector<:ref:`CandidatePoint`>& candidates, const std::vector& current_set) const; virtual bool :ref:`should_retrain_hyperparameters`(const :ref:`SearchState`& state) const; virtual bool :ref:`should_rebuild_factor`(const :ref:`SearchState`& state) const; virtual std::vector :ref:`retain_training_rows`(const std::vector& rows) const; .. _details-classgpr_1_1policy_1_1_variance_threshold_policy: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Call the oracle only when the posterior energy variance is strictly above ``variance_threshold`` (eV^2). A non-finite variance means the engine has no posterior yet, and the engine's own decision stands. Methods ------- .. index:: pair: function; should_call_oracle .. _doxid-classgpr_1_1policy_1_1_variance_threshold_policy_1af32e6291331abca014300a1c40adc953: .. ref-code-block:: cpp :class: doxyrest-title-code-block virtual bool should_call_oracle(const :ref:`SearchState`& state) const True asks the engine to make the call it was about to make.