class gpr::neb::ActiveLearningSession::PolicyScope¶
RAII guard binding a TrainingPolicy and SearchKind to an ActiveLearningSession for the duration of a search phase and restoring any enclosing PolicyContext on scope exit.
#include <gpr/neb/Session.h>
class PolicyScope {
public:
// construction
PolicyScope(ActiveLearningSession* session, const policy::TrainingPolicy* policy, policy::SearchKind kind = policy::SearchKind::Neb);
PolicyScope(const PolicyScope&);
PolicyScope(PolicyScope&& other);
~PolicyScope();
// methods
PolicyScope& operator=(const PolicyScope&);
PolicyScope& operator=(PolicyScope&&);
void publishProgress(int iteration, int oracle_calls, int refits, int training_size);
};