|
Brush C++ API
A flexible interpretable machine learning framework
|
#include <dummy.h>


Public Member Functions | |
| DummyBandit (vector< string > arms) | |
| DummyBandit (map< string, float > arms_probs) | |
| ~DummyBandit () | |
| std::map< string, float > | sample_probs (bool update) |
| Samples the probabilities of the arms. | |
| string | choose () |
| Chooses an arm based on the given tree and fitness. Should call sample_probs internally. | |
| void | update (string arm, float reward) |
| Updates the reward for a specific arm. | |
| Public Member Functions inherited from Brush::MAB::BanditOperator | |
| BanditOperator (vector< string > arms) | |
| Constructs a BanditOperator object with a vector of arms. | |
| BanditOperator (map< string, float > arms_probs) | |
| Constructs a BanditOperator object with a map of arms and their probabilities. | |
| ~BanditOperator () | |
Additional Inherited Members | |
| Protected Attributes inherited from Brush::MAB::BanditOperator | |
| std::map< string, float > | probabilities |
|
virtual |
Chooses an arm based on the given tree and fitness. Should call sample_probs internally.
| tree | The tree structure used to choose the arm. |
| f | The fitness value used to influence the choice. |
Reimplemented from Brush::MAB::BanditOperator.
|
virtual |
Samples the probabilities of the arms.
| update | A boolean indicating whether to update the probabilities. |
Reimplemented from Brush::MAB::BanditOperator.
Definition at line 6 of file dummy.cpp.

|
virtual |
Updates the reward for a specific arm.
| 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.
