|
jubatus_core
0.1.2
Jubatus: Online machine learning framework for distributed environment
|
Classes | |
| class | bit_vector_nearest_neighbor_base |
| class | euclid_lsh |
| class | lsh |
| class | minhash |
| class | nearest_neighbor_base |
| class | nearest_neighbor_exception |
| class | unimplemented_exception |
Functions | |
| storage::bit_vector | binarize (const std::vector< float > &proj) |
| bit_vector | binarize (const vector< float > &proj) |
| bit_vector | cosine_lsh (const common::sfv_t &sfv, uint32_t hash_num) |
| shared_ptr< nearest_neighbor_base > | create_nearest_neighbor (const std::string &name, const common::jsonconfig::config &config, shared_ptr< storage::column_table > table, const std::string &id) |
| jubatus::util::lang::shared_ptr< nearest_neighbor_base > | create_nearest_neighbor (const std::string &name, const common::jsonconfig::config &config, jubatus::util::lang::shared_ptr< storage::column_table > table, const std::string &id) |
| vector< float > | random_projection (const common::sfv_t &sfv, uint32_t hash_num) |
| void | ranking_hamming_bit_vectors (const bit_vector &query, const const_bit_vector_column &bvs, vector< pair< uint64_t, float > > &ret, uint64_t ret_num) |
| void | ranking_hamming_bit_vectors (const storage::bit_vector &query, const storage::const_bit_vector_column &bvs, std::vector< std::pair< uint64_t, float > > &ret, uint64_t ret_num) |
| storage::bit_vector jubatus::core::nearest_neighbor::binarize | ( | const std::vector< float > & | proj | ) |
| bit_vector jubatus::core::nearest_neighbor::binarize | ( | const vector< float > & | proj | ) |
Definition at line 43 of file lsh_function.cpp.
References jubatus::core::storage::bit_vector_base< bit_base >::set_bit().
Referenced by cosine_lsh(), and jubatus::core::storage::lsh_index_storage::make_entry().


| storage::bit_vector jubatus::core::nearest_neighbor::cosine_lsh | ( | const common::sfv_t & | sfv, |
| uint32_t | hash_num | ||
| ) |
Definition at line 53 of file lsh_function.cpp.
References binarize(), and random_projection().
Referenced by jubatus::core::nearest_neighbor::lsh::hash(), and jubatus::core::nearest_neighbor::euclid_lsh::set_row().


| shared_ptr<nearest_neighbor_base> jubatus::core::nearest_neighbor::create_nearest_neighbor | ( | const std::string & | name, |
| const common::jsonconfig::config & | config, | ||
| shared_ptr< storage::column_table > | table, | ||
| const std::string & | id | ||
| ) |
Definition at line 32 of file nearest_neighbor_factory.cpp.
References jubatus::core::common::jsonconfig::config_cast_check(), and JUBATUS_EXCEPTION.
Referenced by jubatus::core::anomaly::anomaly_factory::create_anomaly(), jubatus::core::classifier::classifier_factory::create_classifier(), and jubatus::core::recommender::recommender_factory::create_recommender().


| jubatus::util::lang::shared_ptr<nearest_neighbor_base> jubatus::core::nearest_neighbor::create_nearest_neighbor | ( | const std::string & | name, |
| const common::jsonconfig::config & | config, | ||
| jubatus::util::lang::shared_ptr< storage::column_table > | table, | ||
| const std::string & | id | ||
| ) |
| std::vector< float > jubatus::core::nearest_neighbor::random_projection | ( | const common::sfv_t & | sfv, |
| uint32_t | hash_num | ||
| ) |
Definition at line 31 of file lsh_function.cpp.
References jubatus::core::common::hash_util::calc_string_hash().
Referenced by cosine_lsh().


| void jubatus::core::nearest_neighbor::ranking_hamming_bit_vectors | ( | const bit_vector & | query, |
| const const_bit_vector_column & | bvs, | ||
| vector< pair< uint64_t, float > > & | ret, | ||
| uint64_t | ret_num | ||
| ) |
Definition at line 34 of file bit_vector_ranking.cpp.
References jubatus::core::clustering::dist(), jubatus::core::storage::fixed_size_heap< T, Comp >::get_sorted(), and jubatus::core::storage::fixed_size_heap< T, Comp >::push().
Referenced by jubatus::core::nearest_neighbor::bit_vector_nearest_neighbor_base::neighbor_row_from_hash().


| void jubatus::core::nearest_neighbor::ranking_hamming_bit_vectors | ( | const storage::bit_vector & | query, |
| const storage::const_bit_vector_column & | bvs, | ||
| std::vector< std::pair< uint64_t, float > > & | ret, | ||
| uint64_t | ret_num | ||
| ) |
1.8.9.1