class gpr::policy::VarianceThresholdPolicy

Overview

Call the oracle only when the posterior energy variance is strictly above variance_threshold (eV^2). More…

#include <gpr/policy/TrainingPolicy.h>
 
class VarianceThresholdPolicy: public gpr::policy::TrainingPolicy {
public:
    // construction
 
    VarianceThresholdPolicy(double variance_threshold);
 
    // methods
 
    double variance_threshold() const;
    virtual bool should_call_oracle(const SearchState& state) const;
};

Inherited Members

public:
    // methods
 
    virtual bool should_call_oracle(const SearchState& state) const;
    virtual std::vector<int> select_training_points(const std::vector<CandidatePoint>& candidates, const std::vector<Eigen::VectorXd>& current_set) const;
    virtual bool should_retrain_hyperparameters(const SearchState& state) const;
    virtual bool should_rebuild_factor(const SearchState& state) const;
    virtual std::vector<int> retain_training_rows(const std::vector<Eigen::VectorXd>& rows) const;

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

virtual bool should_call_oracle(const SearchState& state) const

True asks the engine to make the call it was about to make.