#include <gpr/policy/TrainingPolicy.h>
Public Member Functions | |
| 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_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 |
Definition at line 85 of file TrainingPolicy.h.
|
virtualdefault |
|
inlinevirtual |
Indices of rows to keep after admission, in ascending order. The default keeps every row. A list that is not 0..n-1 replaces the stored rows.
Reimplemented in gpr::policy::SizeCapPolicy.
Definition at line 126 of file TrainingPolicy.h.
|
inlinevirtual |
Indices of candidates to append, in ascending order. The default keeps every candidate.
Reimplemented in gpr::policy::DistanceDedupPolicy.
Definition at line 97 of file TrainingPolicy.h.
|
inlinevirtual |
True asks the engine to make the call it was about to make.
Reimplemented in gpr::policy::VarianceThresholdPolicy.
Definition at line 90 of file TrainingPolicy.h.
|
inlinevirtual |
Consulted when hyperparameters are not refit. True rebuilds the factor. False appends when the stored factor is a prefix of the new rows, and rebuilds when it is not.
Definition at line 118 of file TrainingPolicy.h.
|
inlinevirtual |
True runs hyperparameter optimisation. False keeps the current hyperparameters and still updates the factor.
Reimplemented in gpr::policy::FreezeHyperparametersPolicy.
Definition at line 110 of file TrainingPolicy.h.