#include <gpr/policy/TrainingPolicy.h>
Public Member Functions | |
| SizeCapPolicy (int max_size) | |
| int | max_size () const noexcept |
| std::vector< int > | retain_training_rows (const std::vector< Eigen::VectorXd > &rows) 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_retrain_hyperparameters (const SearchState &state) const |
| virtual bool | should_rebuild_factor (const SearchState &state) const |
Training-set cap. New rows are admitted, then the stored set is reduced to max_size by farthest-point selection. max_size is at least 1.
Definition at line 427 of file TrainingPolicy.h.
|
inlineexplicit |
Definition at line 429 of file TrainingPolicy.h.
|
inlinenodiscardnoexcept |
Definition at line 437 of file TrainingPolicy.h.
|
inlineoverridevirtual |
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 from gpr::policy::TrainingPolicy.
Definition at line 442 of file TrainingPolicy.h.