17 #ifndef JUBATUS_CORE_BANDIT_SUMMATION_STORAGE_HPP_
18 #define JUBATUS_CORE_BANDIT_SUMMATION_STORAGE_HPP_
39 const std::string& arm_id);
41 const std::string& arm_id,
45 const std::string& arm_id)
const;
47 const std::string& arm_id)
const;
56 static void mix(
const table_t& lhs, table_t& rhs);
58 bool reset(
const std::string& player_id);
73 #endif // JUBATUS_CORE_BANDIT_SUMMATION_STORAGE_HPP_
bool reset(const std::string &player_id)
bandit_base::diff_t table_t
MSGPACK_DEFINE(arm_ids_, mixed_, unmixed_)
bool register_reward(const std::string &player_id, const std::string &arm_id, double reward)
std::vector< std::string > arm_ids_
const bool assume_unrewarded_
jubatus::util::data::unordered_map< std::string, arm_info_map > diff_t
double get_expectation(const std::string &player_id, const std::string &arm_id) const
const std::vector< std::string > & get_arm_ids() const
void notify_selected(const std::string &player_id, const std::string &arm_id)
void get_diff(table_t &diff) const
bool register_arm(const std::string &arm_id)
bool put_diff(const table_t &diff)
jubatus::util::data::unordered_map< std::string, arm_info > arm_info_map
static void mix(const table_t &lhs, table_t &rhs)
arm_info get_arm_info(const std::string &player_id, const std::string &arm_id) const
arm_info_map get_arm_info_map(const std::string &player_id) const
bool delete_arm(const std::string &arm_id)
summation_storage(bool assume_unrewarded)