jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
Classes | |
class | aggregate_helper_ |
class | storage_ |
Public Member Functions | |
bool | add_document (const string &str, double pos) |
bool | add_keyword (const string &keyword, const keyword_params ¶ms, bool processed_in_this_server) |
void | calculate_results () |
void | clear () |
result_map | get_all_bursted_results () const |
result_map | get_all_bursted_results_at (double pos) const |
keyword_list | get_all_keywords () const |
void | get_diff (diff_t &ret) const |
keyword_list | get_processed_keywords () const |
result_t | get_result (const string &keyword) const |
result_t | get_result_at (const string &keyword, double pos) const |
storage::version | get_version () const |
bool | has_been_mixed () const |
impl_ (const burst_options &options) | |
void | pack (framework::packer &packer) const |
bool | put_diff (const diff_t &diff) |
bool | remove_all_keywords () |
bool | remove_keyword (const string &keyword) |
void | set_processed_keywords (const std::vector< string > &keywords) |
void | unpack (msgpack::object o) |
Static Public Member Functions | |
template<class Map > | |
static keyword_list | get_keyword_list (const Map &m) |
Private Types | |
typedef unordered_map< string, aggregate_helper_ > | aggregators_t |
typedef unordered_map< string, storage_ > | storages_t |
Private Member Functions | |
const result_storage * | get_storage_ (const string &keyword) const |
Static Private Member Functions | |
static void | unpack_impl_ (msgpack::object o, burst_options &unpacked_options, aggregators_t &unpacked_aggregators, storages_t &unpacked_storages) |
Private Attributes | |
aggregators_t | aggregators_ |
bool | has_been_mixed_ |
burst_options | options_ |
storages_t | storages_ |
|
private |
|
private |
|
inlineexplicit |
Definition at line 176 of file burst.cpp.
References jubatus::core::burst::burst_options::batch_interval, jubatus::core::burst::burst_options::costcut_threshold, JUBATUS_EXCEPTION, jubatus::core::burst::burst_options::max_reuse_batch_num, options_, jubatus::core::burst::burst_options::result_window_rotate_size, and jubatus::core::burst::burst_options::window_batch_size.
|
inline |
Definition at line 267 of file burst.cpp.
References jubatus::core::burst::burst::impl_::aggregate_helper_::add_document(), and aggregators_.
|
inline |
Definition at line 200 of file burst.cpp.
References aggregators_, jubatus::core::burst::keyword_params::gamma, JUBATUS_ASSERT_EQ, JUBATUS_EXCEPTION, options_, jubatus::core::burst::keyword_params::scaling_param, and storages_.
|
inline |
|
inline |
Definition at line 405 of file burst.cpp.
References aggregators_, and storages_.
Referenced by remove_all_keywords().
|
inline |
Definition at line 302 of file burst.cpp.
References aggregators_, jubatus::core::burst::result_storage::get_latest_result(), and jubatus::core::burst::burst_result::is_bursted_at_latest_batch().
|
inline |
Definition at line 315 of file burst.cpp.
References aggregators_, jubatus::core::burst::result_storage::get_result_at(), and jubatus::core::burst::burst_result::is_bursted_at().
|
inline |
Definition at line 260 of file burst.cpp.
References get_keyword_list(), and storages_.
|
inline |
Definition at line 328 of file burst.cpp.
References aggregators_, and jubatus::core::burst::burst::diff_t::p_.
|
inlinestatic |
Definition at line 241 of file burst.cpp.
References jubatus::core::burst::keyword_params::gamma, jubatus::core::burst::keyword_with_params::gamma, jubatus::core::burst::keyword_with_params::keyword, jubatus::core::burst::keyword_params::scaling_param, and jubatus::core::burst::keyword_with_params::scaling_param.
Referenced by get_all_keywords(), and get_processed_keywords().
|
inline |
Definition at line 263 of file burst.cpp.
References aggregators_, and get_keyword_list().
|
inline |
Definition at line 286 of file burst.cpp.
References jubatus::core::burst::result_storage::get_latest_result(), and get_storage_().
|
inline |
Definition at line 294 of file burst.cpp.
References jubatus::core::burst::result_storage::get_result_at(), and get_storage_().
|
inlineprivate |
Definition at line 454 of file burst.cpp.
Referenced by get_result(), and get_result_at().
|
inline |
|
inline |
|
inline |
Definition at line 413 of file burst.cpp.
References aggregators_, options_, and storages_.
|
inline |
Definition at line 341 of file burst.cpp.
References aggregators_, has_been_mixed_, options_, jubatus::core::burst::burst::diff_t::p_, and storages_.
|
inline |
|
inline |
|
inline |
Definition at line 381 of file burst.cpp.
References aggregators_, JUBATUS_EXCEPTION, options_, and storages_.
|
inline |
Definition at line 435 of file burst.cpp.
References aggregators_, options_, storages_, and unpack_impl_().
|
inlinestaticprivate |
Definition at line 462 of file burst.cpp.
References jubatus::core::burst::burst::impl_::aggregate_helper_::get_aggregator(), and jubatus::core::burst::burst::impl_::storage_::get_storage().
Referenced by unpack().
|
private |
Definition at line 450 of file burst.cpp.
Referenced by add_document(), add_keyword(), calculate_results(), clear(), get_all_bursted_results(), get_all_bursted_results_at(), get_diff(), get_processed_keywords(), pack(), put_diff(), remove_keyword(), set_processed_keywords(), and unpack().
|
private |
Definition at line 452 of file burst.cpp.
Referenced by has_been_mixed(), and put_diff().
|
private |
Definition at line 449 of file burst.cpp.
Referenced by add_keyword(), calculate_results(), impl_(), pack(), put_diff(), set_processed_keywords(), and unpack().
|
private |
Definition at line 451 of file burst.cpp.
Referenced by add_keyword(), clear(), get_all_keywords(), pack(), put_diff(), remove_keyword(), set_processed_keywords(), and unpack().