struct gpr::policy::PolicyContext¶
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.
#include <gpr/policy/TrainingPolicy.h>
struct PolicyContext {
// fields
const TrainingPolicy* policy = nullptr;
SearchKind kind = SearchKind::Neb;
int iteration = 0;
int oracle_calls = 0;
int hyperparameter_refits = 0;
int training_size = 0;
};