#include <dummy.h>
Definition at line 13 of file dummy.h.
◆ DummyBandit() [1/2]
Brush::MAB::DummyBandit::DummyBandit |
( |
vector< string > | arms | ) |
|
|
inline |
◆ DummyBandit() [2/2]
Brush::MAB::DummyBandit::DummyBandit |
( |
map< string, float > | arms_probs | ) |
|
|
inline |
◆ ~DummyBandit()
Brush::MAB::DummyBandit::~DummyBandit |
( |
| ) |
|
|
inline |
◆ choose()
string Brush::MAB::DummyBandit::choose |
( |
| ) |
|
|
virtual |
Chooses an arm based on the given tree and fitness. Should call sample_probs internally.
- Parameters
-
tree | The tree structure used to choose the arm. |
f | The fitness value used to influence the choice. |
- Returns
- The arm with highest probability.
Reimplemented from Brush::MAB::BanditOperator.
Definition at line 10 of file dummy.cpp.
◆ sample_probs()
std::map< string, float > Brush::MAB::DummyBandit::sample_probs |
( |
bool | update | ) |
|
|
virtual |
Samples the probabilities of the arms.
- Parameters
-
update | A boolean indicating whether to update the probabilities. |
- Returns
- A map of arms and their probabilities.
Reimplemented from Brush::MAB::BanditOperator.
Definition at line 6 of file dummy.cpp.
◆ update()
void Brush::MAB::DummyBandit::update |
( |
string | arm, |
|
|
float | reward ) |
|
virtual |
Updates the reward for a specific arm.
- Parameters
-
arm | The arm for which to update the reward. |
reward | The reward value. |
Reimplemented from Brush::MAB::BanditOperator.
Definition at line 16 of file dummy.cpp.
The documentation for this class was generated from the following files: