jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <anomaly.hpp>
Public Member Functions | |
std::pair< std::string, float > | add (const std::string &id, const fv_converter::datum &d) |
anomaly (jubatus::util::lang::shared_ptr< core::anomaly::anomaly_base > anomaly_method, jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > converter) | |
float | calc_score (const fv_converter::datum &d) const |
void | clear () |
void | clear_row (const std::string &id) |
uint64_t | find_max_int_id () const |
std::vector< std::string > | get_all_rows () const |
jubatus::core::anomaly::anomaly_base * | get_model () const |
bool | is_updatable () const |
float | overwrite (const std::string &id, const fv_converter::datum &d) |
void | pack (framework::packer &pk) const |
void | unpack (msgpack::object o) |
float | update (const std::string &id, const fv_converter::datum &d) |
virtual | ~anomaly () |
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< core::anomaly::anomaly_base > | anomaly_ |
jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > | converter_ |
fv_converter::mixable_weight_manager | wm_ |
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 39 of file anomaly.hpp.
jubatus::core::driver::anomaly::anomaly | ( | jubatus::util::lang::shared_ptr< core::anomaly::anomaly_base > | anomaly_method, |
jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > | converter | ||
) |
Definition at line 43 of file anomaly.cpp.
References anomaly_, converter_, jubatus::core::framework::linear_mixable_helper< Model, Diff >::get_model(), jubatus::core::driver::driver_base::register_mixable(), and wm_.
|
virtual |
Definition at line 58 of file anomaly.cpp.
pair< string, float > jubatus::core::driver::anomaly::add | ( | const std::string & | id, |
const fv_converter::datum & | d | ||
) |
Definition at line 69 of file anomaly.cpp.
References anomaly_, overwrite(), and update().
float jubatus::core::driver::anomaly::calc_score | ( | const fv_converter::datum & | d | ) | const |
Definition at line 100 of file anomaly.cpp.
References anomaly_, converter_, and jubatus::core::common::jsonconfig::v().
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 95 of file anomaly.cpp.
References anomaly_, and converter_.
void jubatus::core::driver::anomaly::clear_row | ( | const std::string & | id | ) |
Definition at line 65 of file anomaly.cpp.
References anomaly_.
uint64_t jubatus::core::driver::anomaly::find_max_int_id | ( | ) | const |
Definition at line 112 of file anomaly.cpp.
References anomaly_.
vector< string > jubatus::core::driver::anomaly::get_all_rows | ( | ) | const |
Definition at line 106 of file anomaly.cpp.
References anomaly_.
|
inline |
Definition at line 48 of file anomaly.hpp.
References anomaly_.
bool jubatus::core::driver::anomaly::is_updatable | ( | ) | const |
Definition at line 61 of file anomaly.cpp.
References anomaly_.
float jubatus::core::driver::anomaly::overwrite | ( | const std::string & | id, |
const fv_converter::datum & | d | ||
) |
Definition at line 87 of file anomaly.cpp.
References anomaly_, converter_, and jubatus::core::common::jsonconfig::v().
Referenced by add().
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 116 of file anomaly.cpp.
References anomaly_, jubatus::core::framework::linear_mixable_helper< Model, Diff >::get_model(), and wm_.
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 122 of file anomaly.cpp.
References anomaly_, converter_, jubatus::core::framework::linear_mixable_helper< Model, Diff >::get_model(), and wm_.
float jubatus::core::driver::anomaly::update | ( | const std::string & | id, |
const fv_converter::datum & | d | ||
) |
Definition at line 79 of file anomaly.cpp.
References anomaly_, converter_, and jubatus::core::common::jsonconfig::v().
Referenced by add().
|
private |
Definition at line 70 of file anomaly.hpp.
Referenced by add(), anomaly(), calc_score(), clear(), clear_row(), find_max_int_id(), get_all_rows(), get_model(), is_updatable(), overwrite(), pack(), unpack(), and update().
|
private |
Definition at line 69 of file anomaly.hpp.
Referenced by anomaly(), calc_score(), clear(), overwrite(), unpack(), and update().
|
private |
Definition at line 71 of file anomaly.hpp.