.. index:: pair: struct; gpr::bo::ParameterSearchConfig .. _doxid-structgpr_1_1bo_1_1_parameter_search_config: struct gpr::bo::ParameterSearchConfig ===================================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct ParameterSearchConfig { // fields int :ref:`initial_evaluations` = 0; int :target:`acquisition_evaluations` = 20; int :target:`candidate_count` = 256; double :ref:`length_scale` = 0.35; double :target:`noise_variance` = 1e-8; double :ref:`stop_loss` = -1.0; :ref:`ParameterAcquisition` :target:`acquisition` = :ref:`ParameterAcquisition::ExpectedImprovement`; double :target:`ucb_kappa` = 2.0; :ref:`RadialKind` :ref:`radial` = :ref:`RadialKind::SquaredExponential`; bool :ref:`fit_hyperparameters` = false; int :ref:`fit_starts` = 4; double :ref:`constraint_noise_variance` = 1e-4; bool :ref:`noisy_objective` = false; }; .. _details-structgpr_1_1bo_1_1_parameter_search_config: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Fields ------ .. index:: pair: variable; initial_evaluations .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1ac2c01d19c56d56cc8cdd05471d98fe24: .. ref-code-block:: cpp :class: doxyrest-title-code-block int initial_evaluations = 0 Zero selects 4 \* dimension, and at least dimension + 1. .. index:: pair: variable; length_scale .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1a5c9142526f41b618285f87a3f1914826: .. ref-code-block:: cpp :class: doxyrest-title-code-block double length_scale = 0.35 Length scale of the default scaled-Euclidean kernel, on every axis. A kernel passed to minimize keeps its own distance. .. index:: pair: variable; stop_loss .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1ad6e6d8dc0922d77643be7c0e21763559: .. ref-code-block:: cpp :class: doxyrest-title-code-block double stop_loss = -1.0 Stop once the best loss is at or below this value. Negative disables. .. index:: pair: variable; radial .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1a42f049112e9b86d6d58337282df0771c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`RadialKind` radial = :ref:`RadialKind::SquaredExponential` :ref:`ParameterSearch ` only: radial shape of its kernel. :ref:`minimize() ` uses the squared exponential or the kernel it is given. .. index:: pair: variable; fit_hyperparameters .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1aa29ab95d8f0698e3a5e8156177e2d60b: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool fit_hyperparameters = false :ref:`ParameterSearch ` only: maximize the log marginal likelihood over the length scales, the signal variance and, without per-row noise, the noise variance before each proposal, once there are at least max(2 \* dimension + 2, 6) rows. Off: length_scale, a unit signal variance and noise_variance are used as given. .. index:: pair: variable; fit_starts .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1a816c1972d18b4f4b3ce851004f882258: .. ref-code-block:: cpp :class: doxyrest-title-code-block int fit_starts = 4 Starts of that fit. .. index:: pair: variable; constraint_noise_variance .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1ad8fad135b159a87b7ef0d1f9e216394d: .. ref-code-block:: cpp :class: doxyrest-title-code-block double constraint_noise_variance = 1e-4 :ref:`ParameterSearch ` only: noise variance of the feasibility model, in units of the root mean square of the observed constraint values. .. index:: pair: variable; noisy_objective .. _doxid-structgpr_1_1bo_1_1_parameter_search_config_1a3cbbe000f28c5876091278b22e21a4e5: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool noisy_objective = false :ref:`ParameterSearch ` only: the loss is a noisy estimate. The incumbent is then the smallest posterior mean at the evaluated points, not the smallest observed loss, and an evaluated point may be proposed again as a replicate.