jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <bandit.hpp>
Public Types | |
typedef core::bandit::bandit_base | bandit_base |
Public Member Functions | |
bandit (const std::string &method_name, const common::jsonconfig::config ¶m) | |
void | clear () |
bool | delete_arm (const std::string &arm_id) |
core::bandit::arm_info_map | get_arm_info (const std::string &player_id) const |
void | pack (framework::packer &pk) const |
bool | register_arm (const std::string &arm_id) |
bool | register_reward (const std::string &player_id, const std::string &arm_id, double reward) |
bool | reset (const std::string &player_id) |
std::string | select_arm (const std::string &player_id) |
void | unpack (msgpack::object o) |
Public Member Functions inherited from jubatus::core::driver::driver_base | |
driver_base () | |
virtual framework::mixable * | get_mixable () |
std::vector< storage::version > | get_versions () const |
virtual | ~driver_base () |
Private Attributes | |
jubatus::util::lang::shared_ptr< bandit_base > | bandit_ |
framework::linear_mixable_helper< bandit_base, bandit_base::diff_t > | mixable_storage_ |
Additional Inherited Members | |
Protected Member Functions inherited from jubatus::core::driver::driver_base | |
void | register_mixable (framework::mixable *mixable) |
Protected Attributes inherited from jubatus::core::driver::driver_base | |
mixable_holder | holder_ |
Definition at line 34 of file bandit.hpp.
Definition at line 36 of file bandit.hpp.
jubatus::core::driver::bandit::bandit | ( | const std::string & | method_name, |
const common::jsonconfig::config & | param | ||
) |
Definition at line 33 of file bandit.cpp.
References mixable_storage_, and jubatus::core::driver::driver_base::register_mixable().
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 66 of file bandit.cpp.
References bandit_.
bool jubatus::core::driver::bandit::delete_arm | ( | const std::string & | arm_id | ) |
Definition at line 43 of file bandit.cpp.
References bandit_.
core::bandit::arm_info_map jubatus::core::driver::bandit::get_arm_info | ( | const std::string & | player_id | ) | const |
Definition at line 57 of file bandit.cpp.
References bandit_.
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 69 of file bandit.cpp.
References bandit_.
bool jubatus::core::driver::bandit::register_arm | ( | const std::string & | arm_id | ) |
Definition at line 40 of file bandit.cpp.
References bandit_.
bool jubatus::core::driver::bandit::register_reward | ( | const std::string & | player_id, |
const std::string & | arm_id, | ||
double | reward | ||
) |
Definition at line 51 of file bandit.cpp.
References bandit_.
bool jubatus::core::driver::bandit::reset | ( | const std::string & | player_id | ) |
Definition at line 62 of file bandit.cpp.
References bandit_.
std::string jubatus::core::driver::bandit::select_arm | ( | const std::string & | player_id | ) |
Definition at line 47 of file bandit.cpp.
References bandit_.
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 72 of file bandit.cpp.
References bandit_.
|
private |
Definition at line 60 of file bandit.hpp.
Referenced by clear(), delete_arm(), get_arm_info(), pack(), register_arm(), register_reward(), reset(), select_arm(), and unpack().
|
private |
Definition at line 62 of file bandit.hpp.
Referenced by bandit().