|
jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <random_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 |
| random_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 Attributes | |
| jubatus::util::data::unordered_map< std::string, size_t > | id_map_ |
| std::vector< std::string > | ids_ |
| size_t | max_size_ |
| jubatus::util::math::random::mtrand | mtr_ |
Additional Inherited Members | |
Protected Member Functions inherited from jubatus::core::unlearner::unlearner_base | |
| void | unlearn (const std::string &id) const |
Definition at line 33 of file random_unlearner.hpp.
|
explicit |
Definition at line 27 of file random_unlearner.cpp.
References id_map_, ids_, JUBATUS_EXCEPTION, jubatus::core::unlearner::random_unlearner::config::max_size, max_size_, mtr_, and jubatus::core::unlearner::random_unlearner::config::seed.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 46 of file random_unlearner.cpp.
|
inlinevirtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 49 of file random_unlearner.hpp.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 92 of file random_unlearner.cpp.
References id_map_.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 73 of file random_unlearner.cpp.
|
virtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 50 of file random_unlearner.cpp.
References id_map_, ids_, max_size_, mtr_, and jubatus::core::unlearner::unlearner_base::unlearn().

|
inlinevirtual |
Implements jubatus::core::unlearner::unlearner_base.
Definition at line 45 of file random_unlearner.hpp.
|
private |
Map of ID and its position in ids_.
Definition at line 65 of file random_unlearner.hpp.
Referenced by clear(), exists_in_memory(), random_unlearner(), remove(), and touch().
|
private |
Unlearner ID set.
Definition at line 70 of file random_unlearner.hpp.
Referenced by clear(), random_unlearner(), remove(), and touch().
|
private |
Maximum size to be hold.
Definition at line 75 of file random_unlearner.hpp.
Referenced by random_unlearner(), and touch().
|
private |
Random number generator.
Definition at line 80 of file random_unlearner.hpp.
Referenced by random_unlearner(), and touch().
1.8.9.1