class gpr::policy::FreezeHyperparametersPolicy

Overview

Skip hyperparameter optimisation once freeze_after_oracle_calls oracle calls have been made. More…

#include <gpr/policy/TrainingPolicy.h>
 
class FreezeHyperparametersPolicy: public gpr::policy::TrainingPolicy {
public:
    // construction
 
    FreezeHyperparametersPolicy(int freeze_after_oracle_calls);
 
    // methods
 
    int freeze_after_oracle_calls() const;
    virtual bool should_retrain_hyperparameters(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

Skip hyperparameter optimisation once freeze_after_oracle_calls oracle calls have been made. The factor is still updated. A negative count is rejected. Zero freezes before the first fit and leaves the seeded hyperparameters in place.

Methods

virtual bool should_retrain_hyperparameters(const SearchState& state) const

True runs hyperparameter optimisation. False keeps the current hyperparameters and still updates the factor.