jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
#include <nearest_neighbor.hpp>
Public Member Functions | |
void | clear () |
std::vector< std::string > | get_all_rows () |
jubatus::util::lang::shared_ptr< const storage::column_table > | get_const_table () const |
jubatus::util::lang::shared_ptr< storage::column_table > | get_table () |
nearest_neighbor (jubatus::util::lang::shared_ptr< core::nearest_neighbor::nearest_neighbor_base > nn, jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > converter) | |
nearest_neighbor (jubatus::util::lang::shared_ptr< core::nearest_neighbor::nearest_neighbor_base > nn, jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > converter, jubatus::util::lang::shared_ptr< unlearner::unlearner_base > unlearner) | |
std::vector< std::pair< std::string, float > > | neighbor_row_from_datum (const fv_converter::datum &datum, size_t size) |
std::vector< std::pair< std::string, float > > | neighbor_row_from_id (const std::string &id, size_t size) |
void | pack (framework::packer &pk) const |
void | set_row (const std::string &id, const fv_converter::datum &datum) |
std::vector< std::pair< std::string, float > > | similar_row (const std::string &id, size_t ret_num) |
std::vector< std::pair< std::string, float > > | similar_row (const core::fv_converter::datum &datum, size_t ret_num) |
void | unpack (msgpack::object o) |
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< fv_converter::datum_to_fv_converter > | converter_ |
jubatus::util::lang::shared_ptr< core::nearest_neighbor::nearest_neighbor_base > | nn_ |
jubatus::util::lang::shared_ptr< unlearner::unlearner_base > | unlearner_ |
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 45 of file nearest_neighbor.hpp.
jubatus::core::driver::nearest_neighbor::nearest_neighbor | ( | jubatus::util::lang::shared_ptr< core::nearest_neighbor::nearest_neighbor_base > | nn, |
jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > | converter | ||
) |
jubatus::core::driver::nearest_neighbor::nearest_neighbor | ( | jubatus::util::lang::shared_ptr< core::nearest_neighbor::nearest_neighbor_base > | nn, |
jubatus::util::lang::shared_ptr< fv_converter::datum_to_fv_converter > | converter, | ||
jubatus::util::lang::shared_ptr< unlearner::unlearner_base > | unlearner | ||
) |
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 125 of file nearest_neighbor.cpp.
References converter_, nn_, and unlearner_.
std::vector< std::string > jubatus::core::driver::nearest_neighbor::get_all_rows | ( | ) |
Definition at line 119 of file nearest_neighbor.cpp.
References nn_.
shared_ptr< const storage::column_table > jubatus::core::driver::nearest_neighbor::get_const_table | ( | ) | const |
Definition at line 68 of file nearest_neighbor.cpp.
References nn_.
shared_ptr< storage::column_table > jubatus::core::driver::nearest_neighbor::get_table | ( | ) |
Definition at line 63 of file nearest_neighbor.cpp.
References nn_.
std::vector< std::pair< std::string, float > > jubatus::core::driver::nearest_neighbor::neighbor_row_from_datum | ( | const fv_converter::datum & | datum, |
size_t | size | ||
) |
Definition at line 91 of file nearest_neighbor.cpp.
References converter_, nn_, and jubatus::core::common::jsonconfig::v().
std::vector< std::pair< std::string, float > > jubatus::core::driver::nearest_neighbor::neighbor_row_from_id | ( | const std::string & | id, |
size_t | size | ||
) |
Definition at line 84 of file nearest_neighbor.cpp.
References nn_.
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 133 of file nearest_neighbor.cpp.
References jubatus::core::framework::linear_mixable_helper< Model, Diff >::get_model(), nn_, and wm_.
void jubatus::core::driver::nearest_neighbor::set_row | ( | const std::string & | id, |
const fv_converter::datum & | datum | ||
) |
Definition at line 72 of file nearest_neighbor.cpp.
References converter_, nn_, unlearner_, and jubatus::core::common::jsonconfig::v().
std::vector< std::pair< std::string, float > > jubatus::core::driver::nearest_neighbor::similar_row | ( | const std::string & | id, |
size_t | ret_num | ||
) |
Definition at line 102 of file nearest_neighbor.cpp.
References nn_.
std::vector< std::pair< std::string, float > > jubatus::core::driver::nearest_neighbor::similar_row | ( | const core::fv_converter::datum & | datum, |
size_t | ret_num | ||
) |
Definition at line 109 of file nearest_neighbor.cpp.
References converter_, nn_, and jubatus::core::common::jsonconfig::v().
|
virtual |
Implements jubatus::core::driver::driver_base.
Definition at line 139 of file nearest_neighbor.cpp.
References converter_, jubatus::core::framework::linear_mixable_helper< Model, Diff >::get_model(), nn_, and wm_.
|
private |
Definition at line 86 of file nearest_neighbor.hpp.
Referenced by clear(), neighbor_row_from_datum(), set_row(), similar_row(), and unpack().
|
private |
Definition at line 88 of file nearest_neighbor.hpp.
Referenced by clear(), get_all_rows(), get_const_table(), get_table(), neighbor_row_from_datum(), neighbor_row_from_id(), pack(), set_row(), similar_row(), and unpack().
|
private |
Definition at line 89 of file nearest_neighbor.hpp.
|
private |
Definition at line 90 of file nearest_neighbor.hpp.