jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Namespaces | Classes | Typedefs | Functions
jubatus::core::storage Namespace Reference

Namespaces

 detail
 

Classes

class  argument_unmatch_exception
 
class  array_range_exception
 
class  bit_index_storage
 
struct  bit_vector_base
 
class  bit_vector_unmatch_exception
 
class  column_table
 
class  column_type
 
struct  diff_t
 
class  fixed_size_heap
 
class  invalid_row_set
 
class  inverted_index_storage
 
class  length_unmatch_exception
 
class  local_storage
 
class  local_storage_mixture
 
struct  lsh_entry
 
class  lsh_index_storage
 
class  lsh_probe_generator
 
class  lsh_vector
 
struct  owner
 
class  recommender_storage_base
 
class  row_deleter
 
class  sparse_matrix_storage
 
class  storage_base
 
class  storage_exception
 
class  storage_factory
 
class  type_unmatch_exception
 
class  typed_column
 
class  typed_column< bit_vector >
 
struct  val2_t
 
struct  val3_t
 
class  version
 

Typedefs

typedef jubatus::util::data::unordered_map< std::string, bit_vectorbit_table_t
 
typedef bit_vector_base< uint64_t > bit_vector
 
typedef typed_column< bit_vectorbit_vector_column
 
typedef const bit_vector_column const_bit_vector_column
 
typedef const typed_column< double > const_double_column
 
typedef const typed_column< float > const_float_column
 
typedef const typed_column< int16_t > const_int16_column
 
typedef const typed_column< int32_t > const_int32_column
 
typedef const typed_column< int64_t > const_int64_column
 
typedef const typed_column< int8_t > const_int8_column
 
typedef const typed_column< std::string > const_string_column
 
typedef const typed_column< uint16_t > const_uint16_column
 
typedef const typed_column< uint32_t > const_uint32_column
 
typedef const typed_column< uint64_t > const_uint64_column
 
typedef const typed_column< uint8_t > const_uint8_column
 
typedef typed_column< double > double_column
 
typedef std::vector< std::pair< std::string, val1_t > > feature_val1_t
 
typedef std::vector< std::pair< std::string, val2_t > > feature_val2_t
 
typedef std::vector< std::pair< std::string, val3_t > > feature_val3_t
 
typedef std::vector< std::pair< std::string, feature_val1_t > > features1_t
 
typedef std::vector< std::pair< std::string, feature_val2_t > > features2_t
 
typedef std::vector< std::pair< std::string, feature_val3_t > > features3_t
 
typedef typed_column< float > float_column
 
typedef fixed_size_heap< pair< uint64_t, string >, greater< pair< uint64_t, string > > > heap_type
 
typedef jubatus::util::data::unordered_map< uint64_t, val3_tid_feature_val3_t
 
typedef jubatus::util::data::unordered_map< std::string, id_feature_val3_tid_features3_t
 
typedef jubatus::util::data::unordered_map< uint64_t, float > imap_float_t
 
typedef typed_column< int16_t > int16_column
 
typedef typed_column< int32_t > int32_column
 
typedef typed_column< int64_t > int64_column
 
typedef typed_column< int8_t > int8_column
 
typedef jubatus::util::data::unordered_map< std::string, lsh_entrylsh_master_table_t
 
typedef jubatus::util::data::unordered_map< uint64_t, std::vector< uint64_t > > lsh_table_t
 
typedef jubatus::util::data::unordered_map< std::string, val1_tmap_feature_val1_t
 
typedef jubatus::util::data::unordered_map< std::string, val3_tmap_feature_val3_t
 
typedef jubatus::util::data::unordered_map< std::string, map_feature_val3_tmap_features3_t
 
typedef jubatus::util::data::unordered_map< std::string, float > map_float_t
 
typedef framework::linear_mixable_helper< bit_index_storage, bit_table_tmixable_bit_index_storage
 
typedef framework::linear_mixable_helper< inverted_index_storage, inverted_index_storage::diff_typemixable_inverted_index_storage
 
typedef framework::linear_mixable_helper< lsh_index_storage, lsh_master_table_tmixable_lsh_index_storage
 
typedef jubatus::core::common::assoc_vector< uint64_t, float > row_t
 
typedef typed_column< std::string > string_column
 
typedef jubatus::util::data::unordered_map< std::string, row_ttbl_t
 
typedef typed_column< uint16_t > uint16_column
 
typedef typed_column< uint32_t > uint32_column
 
typedef typed_column< uint64_t > uint64_column
 
typedef typed_column< uint8_t > uint8_column
 
typedef double val1_t
 

Functions

float feature_fabssum (const id_feature_val3_t &f)
 
template<class E >
std::vector< std::pair< std::string, E > > operator* (std::vector< std::pair< std::string, E > > lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > operator* (std::vector< std::pair< std::string, E > > lhs, double d)
 
template<class E >
std::vector< std::pair< std::string, E > > & operator*= (std::vector< std::pair< std::string, E > > &lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > & operator*= (std::vector< std::pair< std::string, E > > &lhs, double d)
 
template<class E >
std::vector< std::pair< std::string, E > > operator+ (std::vector< std::pair< std::string, E > > lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > & operator+= (std::vector< std::pair< std::string, E > > &lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > operator- (std::vector< std::pair< std::string, E > > lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > & operator-= (std::vector< std::pair< std::string, E > > &lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > operator/ (std::vector< std::pair< std::string, E > > lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > operator/ (std::vector< std::pair< std::string, E > > lhs, double d)
 
template<class E >
std::vector< std::pair< std::string, E > > & operator/= (std::vector< std::pair< std::string, E > > &lhs, const std::vector< std::pair< std::string, E > > &rhs)
 
template<class E >
std::vector< std::pair< std::string, E > > & operator/= (std::vector< std::pair< std::string, E > > &lhs, double d)
 
std::ostream & operator<< (std::ostream &os, const version &v)
 
std::ostream & operator<< (std::ostream &os, const lsh_vector &lv)
 
static void similar_row_one (const bit_vector &x, const pair< string, bit_vector > &y, heap_type &heap)
 
void swap (lsh_vector &l, lsh_vector &r)
 

Typedef Documentation

typedef jubatus::util::data::unordered_map<std::string, bit_vector> jubatus::core::storage::bit_table_t

Definition at line 39 of file storage_type.hpp.

Definition at line 27 of file bit_vector_ranking.hpp.

Definition at line 31 of file bit_vector_ranking.hpp.

Definition at line 33 of file bit_vector_ranking.hpp.

Definition at line 382 of file abstract_column.hpp.

Definition at line 381 of file abstract_column.hpp.

Definition at line 378 of file abstract_column.hpp.

Definition at line 379 of file abstract_column.hpp.

Definition at line 380 of file abstract_column.hpp.

Definition at line 377 of file abstract_column.hpp.

Definition at line 383 of file abstract_column.hpp.

Definition at line 374 of file abstract_column.hpp.

Definition at line 375 of file abstract_column.hpp.

Definition at line 376 of file abstract_column.hpp.

Definition at line 373 of file abstract_column.hpp.

Definition at line 369 of file abstract_column.hpp.

typedef std::vector<std::pair<std::string, val1_t> > jubatus::core::storage::feature_val1_t

Definition at line 209 of file storage_type.hpp.

typedef std::vector<std::pair<std::string, val2_t> > jubatus::core::storage::feature_val2_t

Definition at line 210 of file storage_type.hpp.

typedef std::vector<std::pair<std::string, val3_t> > jubatus::core::storage::feature_val3_t

Definition at line 211 of file storage_type.hpp.

typedef std::vector<std::pair<std::string, feature_val1_t> > jubatus::core::storage::features1_t

Definition at line 213 of file storage_type.hpp.

typedef std::vector<std::pair<std::string, feature_val2_t> > jubatus::core::storage::features2_t

Definition at line 214 of file storage_type.hpp.

typedef std::vector<std::pair<std::string, feature_val3_t> > jubatus::core::storage::features3_t

Definition at line 215 of file storage_type.hpp.

Definition at line 368 of file abstract_column.hpp.

typedef fixed_size_heap<pair<uint64_t, string>, greater<pair<uint64_t, string> > > jubatus::core::storage::heap_type

Definition at line 122 of file bit_index_storage.cpp.

typedef jubatus::util::data::unordered_map<uint64_t, val3_t> jubatus::core::storage::id_feature_val3_t

Definition at line 34 of file local_storage.hpp.

typedef jubatus::util::data::unordered_map<std::string, id_feature_val3_t> jubatus::core::storage::id_features3_t

Definition at line 36 of file local_storage.hpp.

typedef jubatus::util::data::unordered_map<uint64_t, float> jubatus::core::storage::imap_float_t

Definition at line 42 of file storage_type.hpp.

Definition at line 365 of file abstract_column.hpp.

Definition at line 366 of file abstract_column.hpp.

Definition at line 367 of file abstract_column.hpp.

Definition at line 364 of file abstract_column.hpp.

typedef jubatus::util::data::unordered_map< std::string, lsh_entry > jubatus::core::storage::lsh_master_table_t

Definition at line 39 of file euclid_lsh.hpp.

typedef jubatus::util::data::unordered_map<uint64_t, std::vector<uint64_t> > jubatus::core::storage::lsh_table_t

Definition at line 49 of file lsh_index_storage.hpp.

typedef jubatus::util::data::unordered_map<std::string, val1_t> jubatus::core::storage::map_feature_val1_t

Definition at line 218 of file storage_type.hpp.

typedef jubatus::util::data::unordered_map<std::string, val3_t> jubatus::core::storage::map_feature_val3_t

Definition at line 220 of file storage_type.hpp.

typedef jubatus::util::data::unordered_map<std::string, map_feature_val3_t> jubatus::core::storage::map_features3_t

Definition at line 222 of file storage_type.hpp.

typedef jubatus::util::data::unordered_map<std::string, float> jubatus::core::storage::map_float_t

Definition at line 41 of file storage_type.hpp.

Definition at line 34 of file lsh.hpp.

Definition at line 98 of file inverted_index_storage.hpp.

Definition at line 43 of file euclid_lsh.hpp.

Definition at line 36 of file storage_type.hpp.

Definition at line 370 of file abstract_column.hpp.

typedef jubatus::util::data::unordered_map<std::string, row_t> jubatus::core::storage::tbl_t

Definition at line 37 of file storage_type.hpp.

Definition at line 361 of file abstract_column.hpp.

Definition at line 362 of file abstract_column.hpp.

Definition at line 363 of file abstract_column.hpp.

Definition at line 360 of file abstract_column.hpp.

Definition at line 44 of file storage_type.hpp.

Function Documentation

float jubatus::core::storage::feature_fabssum ( const id_feature_val3_t f)

Definition at line 183 of file local_storage.cpp.

References jubatus::core::clustering::sum().

183  {
184  float sum = 0.f;
185  for (id_feature_val3_t::const_iterator it = f.begin(); it != f.end(); ++it) {
186  sum += std::fabs(it->second.v1);
187  }
188  return sum;
189 }
double sum(const common::sfv_t &p)
Definition: util.cpp:47

Here is the call graph for this function:

template<class E >
std::vector<std::pair<std::string, E> > jubatus::core::storage::operator* ( std::vector< std::pair< std::string, E > >  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 305 of file storage_type.hpp.

307  {
308  return lhs *= rhs;
309 }
template<class E >
std::vector<std::pair<std::string, E> > jubatus::core::storage::operator* ( std::vector< std::pair< std::string, E > >  lhs,
double  d 
)
inline

Definition at line 333 of file storage_type.hpp.

335  {
336  return lhs *= d;
337 }
template<class E >
std::vector<std::pair<std::string, E> >& jubatus::core::storage::operator*= ( std::vector< std::pair< std::string, E > > &  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 313 of file storage_type.hpp.

References jubatus::core::storage::detail::binop().

314  {
315  return detail::binop(lhs, rhs, std::multiplies<E>());
316 }
std::vector< std::pair< std::string, E > > & binop(std::vector< std::pair< std::string, E > > &lhs, std::vector< std::pair< std::string, E > > rhs, F f, E default_value=E())

Here is the call graph for this function:

template<class E >
std::vector<std::pair<std::string, E> >& jubatus::core::storage::operator*= ( std::vector< std::pair< std::string, E > > &  lhs,
double  d 
)
inline

Definition at line 340 of file storage_type.hpp.

References jubatus::core::storage::detail::mult_scalar().

342  {
343  return detail::mult_scalar(lhs, d);
344 }
std::vector< std::pair< std::string, E > > & mult_scalar(std::vector< std::pair< std::string, E > > &lhs, double d)

Here is the call graph for this function:

template<class E >
std::vector<std::pair<std::string, E> > jubatus::core::storage::operator+ ( std::vector< std::pair< std::string, E > >  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 277 of file storage_type.hpp.

279  {
280  return lhs += rhs;
281 }
template<class E >
std::vector<std::pair<std::string, E> >& jubatus::core::storage::operator+= ( std::vector< std::pair< std::string, E > > &  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 285 of file storage_type.hpp.

References jubatus::core::storage::detail::binop().

286  {
287  return detail::binop(lhs, rhs, std::plus<E>());
288 }
std::vector< std::pair< std::string, E > > & binop(std::vector< std::pair< std::string, E > > &lhs, std::vector< std::pair< std::string, E > > rhs, F f, E default_value=E())

Here is the call graph for this function:

template<class E >
std::vector<std::pair<std::string, E> > jubatus::core::storage::operator- ( std::vector< std::pair< std::string, E > >  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 291 of file storage_type.hpp.

293  {
294  return lhs -= rhs;
295 }
template<class E >
std::vector<std::pair<std::string, E> >& jubatus::core::storage::operator-= ( std::vector< std::pair< std::string, E > > &  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 299 of file storage_type.hpp.

References jubatus::core::storage::detail::binop().

300  {
301  return detail::binop(lhs, rhs, std::minus<E>());
302 }
std::vector< std::pair< std::string, E > > & binop(std::vector< std::pair< std::string, E > > &lhs, std::vector< std::pair< std::string, E > > rhs, F f, E default_value=E())

Here is the call graph for this function:

template<class E >
std::vector<std::pair<std::string, E> > jubatus::core::storage::operator/ ( std::vector< std::pair< std::string, E > >  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 319 of file storage_type.hpp.

321  {
322  return lhs /= rhs;
323 }
template<class E >
std::vector<std::pair<std::string, E> > jubatus::core::storage::operator/ ( std::vector< std::pair< std::string, E > >  lhs,
double  d 
)
inline

Definition at line 347 of file storage_type.hpp.

349  {
350  return lhs /= d;
351 }
template<class E >
std::vector<std::pair<std::string, E> >& jubatus::core::storage::operator/= ( std::vector< std::pair< std::string, E > > &  lhs,
const std::vector< std::pair< std::string, E > > &  rhs 
)
inline

Definition at line 326 of file storage_type.hpp.

References jubatus::core::storage::detail::binop().

328  {
329  return detail::binop(lhs, rhs, std::divides<E>());
330 }
std::vector< std::pair< std::string, E > > & binop(std::vector< std::pair< std::string, E > > &lhs, std::vector< std::pair< std::string, E > > rhs, F f, E default_value=E())

Here is the call graph for this function:

template<class E >
std::vector<std::pair<std::string, E> >& jubatus::core::storage::operator/= ( std::vector< std::pair< std::string, E > > &  lhs,
double  d 
)
inline

Definition at line 354 of file storage_type.hpp.

References jubatus::core::storage::detail::mult_scalar().

356  {
357  return detail::mult_scalar(lhs, 1.0 / d);
358 }
std::vector< std::pair< std::string, E > > & mult_scalar(std::vector< std::pair< std::string, E > > &lhs, double d)

Here is the call graph for this function:

std::ostream& jubatus::core::storage::operator<< ( std::ostream &  os,
const version v 
)

Definition at line 24 of file version.cpp.

References jubatus::core::storage::version::version_number_.

24  {
25  os << v.version_number_;
26  // cardinal number output
27  if ((v.version_number_ % 10) == 1
28  && ((v.version_number_ % 100) != 11)) {
29  os << "st";
30  } else if ((v.version_number_ % 10) == 2
31  && ((v.version_number_ % 100) != 12)) {
32  os << "nd";
33  } else if ((v.version_number_ % 10) == 3
34  && ((v.version_number_ % 100) != 13)) {
35  os << "rd";
36  } else {
37  os << "th";
38  }
39  return os;
40 }
std::vector< T > v(size)
std::ostream& jubatus::core::storage::operator<< ( std::ostream &  os,
const lsh_vector lv 
)
inline

Definition at line 65 of file lsh_vector.hpp.

References jubatus::core::storage::lsh_vector::debug_print().

65  {
66  lv.debug_print(os);
67  return os;
68 }

Here is the call graph for this function:

static void jubatus::core::storage::similar_row_one ( const bit_vector x,
const pair< string, bit_vector > &  y,
heap_type heap 
)
static

Definition at line 124 of file bit_index_storage.cpp.

References jubatus::core::storage::bit_vector_base< bit_base >::calc_hamming_similarity(), and jubatus::core::storage::fixed_size_heap< T, Comp >::push().

Referenced by jubatus::core::storage::bit_index_storage::similar_row().

127  {
128  uint64_t match_num = x.calc_hamming_similarity(y.second);
129  heap.push(make_pair(match_num, y.first));
130 }

Here is the call graph for this function:

Here is the caller graph for this function:

void jubatus::core::storage::swap ( lsh_vector l,
lsh_vector r 
)
inline

Definition at line 61 of file lsh_vector.hpp.

References jubatus::core::storage::lsh_vector::swap().

Referenced by jubatus::core::storage::typed_column< T >::remove().

61  { // NOLINT
62  l.swap(r);
63 }

Here is the call graph for this function:

Here is the caller graph for this function: