#include <gpr/policy/TrainingPolicy.h>
Public Member Functions | |
| FreezeHyperparametersPolicy (int freeze_after_oracle_calls) | |
| int | freeze_after_oracle_calls () const noexcept |
| bool | should_retrain_hyperparameters (const SearchState &state) const override |
| Public Member Functions inherited from gpr::policy::TrainingPolicy | |
| virtual | ~TrainingPolicy ()=default |
| virtual bool | should_call_oracle (const SearchState &state) const |
| True asks the engine to make the call it was about to make. | |
| virtual std::vector< int > | select_training_points (const std::vector< CandidatePoint > &candidates, const std::vector< Eigen::VectorXd > ¤t_set) const |
| virtual bool | should_rebuild_factor (const SearchState &state) const |
| virtual std::vector< int > | retain_training_rows (const std::vector< Eigen::VectorXd > &rows) const |
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.
Definition at line 536 of file TrainingPolicy.h.
|
inlineexplicit |
Definition at line 538 of file TrainingPolicy.h.
|
inlinenodiscardnoexcept |
Definition at line 548 of file TrainingPolicy.h.
|
inlineoverridevirtual |
True runs hyperparameter optimisation. False keeps the current hyperparameters and still updates the factor.
Reimplemented from gpr::policy::TrainingPolicy.
Definition at line 553 of file TrainingPolicy.h.