1#ifndef BANDIT_OPERATOR_H
2#define BANDIT_OPERATOR_H
23 using Iter = tree<Node>::pre_order_iterator;
64 virtual void update(
string arm,
float reward);
std::map< string, float > probabilities
virtual void update(string arm, float reward)
Updates the reward for a specific arm.
virtual string choose()
Chooses an arm based on the given tree and fitness. Should call sample_probs internally.
BanditOperator(vector< string > arms)
Constructs a BanditOperator object with a vector of arms.
tree< Node >::pre_order_iterator Iter
virtual std::map< string, float > sample_probs(bool update)
Samples the probabilities of the arms.
< nsga2 selection operator for getting the front