jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Static Public Member Functions | List of all members
jubatus::core::classifier::ClassifierUtil Class Reference

#include <classifier_util.hpp>

Collaboration diagram for jubatus::core::classifier::ClassifierUtil:
Collaboration graph

Static Public Member Functions

template<class T , class U >
static void get_two (const T &t, const std::string &label1, const std::string &label2, U &u1, U &u2)
 

Detailed Description

Definition at line 26 of file classifier_util.hpp.

Member Function Documentation

template<class T , class U >
static void jubatus::core::classifier::ClassifierUtil::get_two ( const T &  t,
const std::string &  label1,
const std::string &  label2,
U &  u1,
U &  u2 
)
inlinestatic

Definition at line 29 of file classifier_util.hpp.

Referenced by jubatus::core::classifier::arow::update(), jubatus::core::classifier::normal_herd::update(), and jubatus::core::classifier::confidence_weighted::update().

34  {
35  for (size_t i = 0; i < t.size(); ++i) {
36  if (t[i].first == label1) {
37  u1 = t[i].second;
38  } else if (t[i].first == label2) {
39  u2 = t[i].second;
40  }
41  }
42  }

Here is the caller graph for this function:


The documentation for this class was generated from the following file: