Decisions a search asks before it calls the oracle, admits a row, refits hyperparameters, or rebuilds a factor. More...
#include <Eigen/Dense>#include <cmath>#include <limits>#include <stdexcept>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | gpr::policy::SearchState |
| Read-only view of one decision. Pointers are valid only for the call. More... | |
| struct | gpr::policy::CandidatePoint |
| class | gpr::policy::TrainingPolicy |
| class | gpr::policy::DefaultTrainingPolicy |
| struct | gpr::policy::PolicyContext |
| class | gpr::policy::SizeCapPolicy |
| class | gpr::policy::DistanceDedupPolicy |
| class | gpr::policy::VarianceThresholdPolicy |
| class | gpr::policy::FreezeHyperparametersPolicy |
Namespaces | |
| namespace | gpr |
| Gaussian-process regression, kernels, priors, and the searches that run on the surrogate. | |
| namespace | gpr::policy |
Enumerations | |
| enum class | gpr::policy::SearchKind : int { gpr::policy::Minimize = 0 , gpr::policy::Neb = 1 , gpr::policy::OciNeb = 2 , gpr::policy::Dimer = 3 } |
| enum class | gpr::policy::OracleRole : int { gpr::policy::Unspecified = 0 , gpr::policy::InitialDesign = 1 , gpr::policy::Acquisition = 2 , gpr::policy::TrustExit = 3 , gpr::policy::ConvergenceCheck = 4 , gpr::policy::DimerMidpoint = 5 } |
Functions | |
| void | gpr::policy::publishPolicyProgress (PolicyContext *context, int iteration, int oracle_calls, int refits, int training_size) noexcept |
| bool | gpr::policy::consensusShouldCallOracle (const TrainingPolicy &policy, const SearchState &state) |
| std::vector< int > | gpr::policy::consensusSelectTrainingPoints (const TrainingPolicy &policy, const std::vector< CandidatePoint > &candidates, const std::vector< Eigen::VectorXd > ¤t_set) |
| bool | gpr::policy::consensusShouldRetrainHyperparameters (const TrainingPolicy &policy, const SearchState &state) |
| bool | gpr::policy::consensusShouldRebuildFactor (const TrainingPolicy &policy, const SearchState &state) |
| std::vector< int > | gpr::policy::consensusRetainTrainingRows (const TrainingPolicy &policy, const std::vector< Eigen::VectorXd > &rows) |
| bool | gpr::policy::admitsFirstCandidate (const std::vector< int > &indices) |
| bool | gpr::policy::indexListIsIdentity (const std::vector< int > &indices, int n) |
| std::vector< int > | gpr::policy::canonicalizeRetainedIndices (const std::vector< int > &keep, int n) |
| double | gpr::policy::squaredDistance (const Eigen::VectorXd &a, const Eigen::VectorXd &b) |
| std::vector< int > | gpr::policy::farthestPointIndices (const std::vector< Eigen::VectorXd > &rows, int max_size) |
Decisions a search asks before it calls the oracle, admits a row, refits hyperparameters, or rebuilds a factor.
A null policy pointer is the default. The search then keeps the decision it already made and does not call into this header. Passing DefaultTrainingPolicy asks the same questions and returns the engine's own answers, so the search outputs match the null policy.
Definition in file TrainingPolicy.h.