.. index:: pair: class; gpr::neb::ActiveLearningSession::PolicyScope .. _doxid-classgpr_1_1neb_1_1_active_learning_session_1_1_policy_scope: class gpr::neb::ActiveLearningSession::PolicyScope ================================================== .. toctree:: :hidden: RAII guard binding a TrainingPolicy and SearchKind to an :ref:`ActiveLearningSession ` for the duration of a search phase and restoring any enclosing PolicyContext on scope exit. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class PolicyScope { public: // construction :target:`PolicyScope`(:ref:`ActiveLearningSession`* session, const :ref:`policy::TrainingPolicy`* policy, :ref:`policy::SearchKind` kind = :ref:`policy::SearchKind::Neb`); :target:`PolicyScope`(const PolicyScope&); :target:`PolicyScope`(PolicyScope&& other); :target:`~PolicyScope`(); // methods :ref:`PolicyScope`& :target:`operator=`(const :ref:`PolicyScope`&); :ref:`PolicyScope`& :target:`operator=`(:ref:`PolicyScope`&&); void :target:`publishProgress`(int iteration, int oracle_calls, int refits, int training_size); };