jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <lru_unlearner.hpp>
Classes | |
struct | config |
Public Member Functions | |
bool | can_touch (const std::string &id) |
void | clear () |
bool | exists_in_memory (const std::string &id) const |
lru_unlearner (const config &conf) | |
bool | remove (const std::string &id) |
bool | touch (const std::string &id) |
std::string | type () const |
Public Member Functions inherited from jubatus::core::unlearner::unlearner_base | |
void | set_callback (const unlearning_callback &callback) |
virtual | ~unlearner_base () |
Private Types | |
typedef jubatus::util::data::unordered_map< std::string, lru::iterator > | entry_map |
typedef std::list< std::string > | lru |
Private Member Functions | |
void | rebuild_entry_map () |
Private Attributes | |
entry_map | entry_map_ |
lru | lru_ |
size_t | max_size_ |
jubatus::util::data::unordered_set< std::string > | sticky_ids_ |
jubatus::util::lang::shared_ptr< jubatus::core::fv_converter::key_matcher > | sticky_matcher_ |
Additional Inherited Members | |
Protected Member Functions inherited from jubatus::core::unlearner::unlearner_base | |
void | unlearn (const std::string &id) const |
Definition at line 38 of file lru_unlearner.hpp.
|
private |
Definition at line 70 of file lru_unlearner.hpp.
|
private |
Definition at line 68 of file lru_unlearner.hpp.
|
explicit |
Definition at line 34 of file lru_unlearner.cpp.
References jubatus::core::fv_converter::key_matcher_factory::create_matcher(), entry_map_, JUBATUS_EXCEPTION, jubatus::core::unlearner::lru_unlearner::config::max_size, max_size_, sticky_matcher_, and jubatus::core::unlearner::lru_unlearner::config::sticky_pattern.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 49 of file lru_unlearner.cpp.
References exists_in_memory(), max_size_, and sticky_ids_.
|
inlinevirtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 54 of file lru_unlearner.hpp.
References entry_map_, lru_, and sticky_ids_.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 125 of file lru_unlearner.cpp.
References entry_map_, and sticky_ids_.
Referenced by can_touch().
|
private |
Definition at line 131 of file lru_unlearner.cpp.
References entry_map_, and lru_.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 102 of file lru_unlearner.cpp.
References entry_map_, lru_, and sticky_ids_.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 53 of file lru_unlearner.cpp.
References entry_map_, lru_, max_size_, sticky_ids_, sticky_matcher_, and jubatus::core::unlearner::unlearner_base::unlearn().
|
inlinevirtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 50 of file lru_unlearner.hpp.
|
private |
Definition at line 75 of file lru_unlearner.hpp.
Referenced by clear(), exists_in_memory(), lru_unlearner(), rebuild_entry_map(), remove(), and touch().
|
private |
Definition at line 74 of file lru_unlearner.hpp.
Referenced by clear(), rebuild_entry_map(), remove(), and touch().
|
private |
Definition at line 77 of file lru_unlearner.hpp.
Referenced by can_touch(), lru_unlearner(), and touch().
|
private |
Definition at line 76 of file lru_unlearner.hpp.
Referenced by can_touch(), clear(), exists_in_memory(), remove(), and touch().
|
private |
Definition at line 79 of file lru_unlearner.hpp.
Referenced by lru_unlearner(), and touch().