.. index:: pair: struct; gpr::policy::PolicyContext .. _doxid-structgpr_1_1policy_1_1_policy_context: struct gpr::policy::PolicyContext ================================= .. toctree:: :hidden: Progress a long search publishes for the policy. ActiveLearningSession owns the active context through its RAII PolicyScope guard, restoring any enclosing scope automatically when a nested phase returns or unwinds. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct PolicyContext { // fields const :ref:`TrainingPolicy`* :target:`policy` = nullptr; :ref:`SearchKind` :target:`kind` = :ref:`SearchKind::Neb`; int :target:`iteration` = 0; int :target:`oracle_calls` = 0; int :target:`hyperparameter_refits` = 0; int :target:`training_size` = 0; };