17 #ifndef JUBATUS_CORE_DRIVER_BANDIT_HPP_
18 #define JUBATUS_CORE_DRIVER_BANDIT_HPP_
23 #include "jubatus/util/lang/shared_ptr.h"
24 #include "../bandit/bandit_base.hpp"
25 #include "../common/jsonconfig.hpp"
26 #include "../framework/mixable.hpp"
27 #include "../framework/mixable_helper.hpp"
38 bandit(
const std::string& method_name,
44 std::string
select_arm(
const std::string& player_id);
47 const std::string& arm_id,
51 const std::string& player_id)
const;
53 bool reset(
const std::string& player_id);
57 void unpack(msgpack::object o);
60 jubatus::util::lang::shared_ptr<bandit_base>
bandit_;
69 #endif // JUBATUS_CORE_DRIVER_BANDIT_HPP_
framework::linear_mixable_helper< bandit_base, bandit_base::diff_t > mixable_storage_
bool register_arm(const std::string &arm_id)
void unpack(msgpack::object o)
core::bandit::arm_info_map get_arm_info(const std::string &player_id) const
core::bandit::bandit_base bandit_base
bool register_reward(const std::string &player_id, const std::string &arm_id, double reward)
void pack(framework::packer &pk) const
jubatus::util::data::unordered_map< std::string, arm_info_map > diff_t
std::string select_arm(const std::string &player_id)
jubatus::util::data::unordered_map< std::string, arm_info > arm_info_map
bandit(const std::string &method_name, const common::jsonconfig::config ¶m)
bool delete_arm(const std::string &arm_id)
bool reset(const std::string &player_id)
jubatus::util::lang::shared_ptr< bandit_base > bandit_