jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <epsilon_greedy.hpp>
Public Member Functions | |
void | clear () |
bool | delete_arm (const std::string &arm_id) |
epsilon_greedy (bool assume_unrewarded, double eps) | |
arm_info_map | get_arm_info (const std::string &player_id) const |
void | get_diff (diff_t &diff) const |
storage::version | get_version () const |
void | mix (const diff_t &lhs, diff_t &rhs) const |
std::string | name () const |
void | pack (framework::packer &pk) const |
bool | put_diff (const diff_t &diff) |
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::bandit::bandit_base | |
bandit_base () | |
virtual | ~bandit_base () |
Private Attributes | |
double | eps_ |
jubatus::util::math::random::mtrand | rand_ |
summation_storage | s_ |
Additional Inherited Members | |
Public Types inherited from jubatus::core::bandit::bandit_base | |
typedef jubatus::util::data::unordered_map< std::string, arm_info_map > | diff_t |
Definition at line 30 of file epsilon_greedy.hpp.
jubatus::core::bandit::epsilon_greedy::epsilon_greedy | ( | bool | assume_unrewarded, |
double | eps | ||
) |
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 84 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::clear(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 67 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::delete_arm(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 77 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::get_arm_info_map(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 95 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::get_diff(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 105 of file epsilon_greedy.cpp.
Implements jubatus::core::bandit::bandit_base.
Definition at line 101 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::mix(), and s_.
|
inlinevirtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 48 of file epsilon_greedy.hpp.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 88 of file epsilon_greedy.cpp.
References s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 98 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::put_diff(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 64 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::register_arm(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 71 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::register_reward(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 81 of file epsilon_greedy.cpp.
References jubatus::core::bandit::summation_storage::reset(), and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 37 of file epsilon_greedy.cpp.
References eps_, jubatus::core::bandit::summation_storage::get_arm_ids(), jubatus::core::bandit::summation_storage::get_expectation(), JUBATUS_EXCEPTION, jubatus::core::bandit::summation_storage::notify_selected(), rand_, and s_.
|
virtual |
Implements jubatus::core::bandit::bandit_base.
Definition at line 91 of file epsilon_greedy.cpp.
References s_.
|
private |
Definition at line 61 of file epsilon_greedy.hpp.
Referenced by select_arm().
|
private |
Definition at line 62 of file epsilon_greedy.hpp.
Referenced by select_arm().
|
private |
Definition at line 63 of file epsilon_greedy.hpp.
Referenced by clear(), delete_arm(), get_arm_info(), get_diff(), mix(), pack(), put_diff(), register_arm(), register_reward(), reset(), select_arm(), and unpack().