.. index:: pair: namespace; gpr::bo::testing .. _doxid-namespacegpr_1_1bo_1_1testing: namespace gpr::bo::testing ========================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace testing { // typedefs typedef std::function :ref:`HyperparameterTrialFault`; // global functions void :target:`setHyperparameterTrialFault`(:ref:`HyperparameterTrialFault` fault); } // namespace testing .. _details-namespacegpr_1_1bo_1_1testing: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Typedefs -------- .. index:: pair: typedef; HyperparameterTrialFault .. _doxid-namespacegpr_1_1bo_1_1testing_1a65b10eaf1f6025b8a576e9e6e7a43676: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef std::function 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 :ref:`BayesianQuadratureNumericalError `. The hook is per thread; an empty function removes it.