23 #ifndef SRC_APPLICATION_NARMEDBANDITSSOFMAX_HPP_
24 #define SRC_APPLICATION_NARMEDBANDITSSOFMAX_HPP_
28 #include <types/MatrixTypes.hpp>
30 #include <opengl/application/OpenGLApplication.hpp>
31 #include <opengl/visualization/WindowCollectorChart.hpp>
32 using namespace mic::opengl::visualization;
35 namespace application {
58 virtual void initializePropertyDependentVariables();
65 virtual void initialize(
int argc,
char* argv[]);
70 virtual bool performSingleStep();
98 mic::configuration::Property<double>
tau;
117 short calculateReward(
float prob_);
122 void updateSoftmaxValues();
mic::configuration::Property< size_t > number_of_bandits
Property: number of bandits.
mic::types::VectorXi action_counts
Counters storing how many times we've taken a particular action.
mic::types::VectorXf action_values
Action values.
mic::types::VectorXf arms
n Bandit arms.
mic::utils::DataCollectorPtr< std::string, float > reward_collector_ptr
Reward collector.
mic::configuration::Property< double > tau
mic::types::VectorXf action_values_softmax
Action values - softmax.
mic::configuration::Property< std::string > statistics_filename
Property: name of the file to which the statistics will be exported.
WindowCollectorChart< float > * w_reward
Window for displaying average reward.
Class implementing a n-Armed Bandits problem solving the n armed bandits problem using Softmax Action...