namespace gpr::bo::testing¶
Overview¶
namespace testing {
// typedefs
typedef std::function<bool(int trial)> HyperparameterTrialFault;
// global functions
void setHyperparameterTrialFault(HyperparameterTrialFault fault);
} // namespace testing
Detailed Documentation¶
Typedefs¶
typedef std::function<bool(int trial)> HyperparameterTrialFault
Test-only fault injection: fault(trial) returns true to make the trial -th (0-based) objective evaluation of a hyperparameter optimization fail with a BayesianQuadratureNumericalError. The hook is per thread; an empty function removes it.