jubatus_core  0.1.2
Jubatus: Online machine learning framework for distributed environment
Classes | Public Member Functions | Private Attributes | List of all members
jubatus::core::burst::aggregator Class Reference

#include <aggregator.hpp>

Collaboration diagram for jubatus::core::burst::aggregator:
Collaboration graph

Classes

class  impl_
 

Public Member Functions

bool add_document (int d, int r, double pos)
 
 aggregator (int window_batch_size, double batch_interval, int max_stored)
 
int flush_results (double scaling_param, double gamma, double costcut_threshold, int max_reuse_batches, result_storage &stored)
 
void pack (framework::packer &packer) const
 
void unpack (msgpack::object o)
 
 ~aggregator ()
 

Private Attributes

jubatus::util::lang::scoped_ptr< impl_p_
 

Detailed Description

Definition at line 30 of file aggregator.hpp.

Constructor & Destructor Documentation

jubatus::core::burst::aggregator::aggregator ( int  window_batch_size,
double  batch_interval,
int  max_stored 
)

Definition at line 137 of file aggregator.cpp.

139  : p_(new impl_(window_batch_size, batch_interval, max_stored)) {
140 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: aggregator.hpp:52
jubatus::core::burst::aggregator::~aggregator ( )

Definition at line 142 of file aggregator.cpp.

142  {
143 }

Member Function Documentation

bool jubatus::core::burst::aggregator::add_document ( int  d,
int  r,
double  pos 
)

Definition at line 145 of file aggregator.cpp.

References JUBATUS_ASSERT, and p_.

145  {
147  return p_->add_document(d, r, pos);
148 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: aggregator.hpp:52
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
int jubatus::core::burst::aggregator::flush_results ( double  scaling_param,
double  gamma,
double  costcut_threshold,
int  max_reuse_batches,
result_storage stored 
)

Definition at line 150 of file aggregator.cpp.

References JUBATUS_ASSERT, and p_.

154  {
156  return p_->flush_results(scaling_param, gamma, costcut_threshold,
157  max_reuse_batches, stored);
158 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: aggregator.hpp:52
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
void jubatus::core::burst::aggregator::pack ( framework::packer packer) const

Definition at line 160 of file aggregator.cpp.

References JUBATUS_ASSERT, and p_.

160  {
162  packer.pack(*p_);
163 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: aggregator.hpp:52
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55
msgpack::packer< jubatus_packer > packer
Definition: bandit_base.hpp:31
void jubatus::core::burst::aggregator::unpack ( msgpack::object  o)

Definition at line 165 of file aggregator.cpp.

References JUBATUS_ASSERT, and p_.

165  {
167  o.convert(p_.get());
168 }
jubatus::util::lang::scoped_ptr< impl_ > p_
Definition: aggregator.hpp:52
#define JUBATUS_ASSERT(expr)
Definition: assert.hpp:55

Member Data Documentation

jubatus::util::lang::scoped_ptr<impl_> jubatus::core::burst::aggregator::p_
private

Definition at line 52 of file aggregator.hpp.

Referenced by add_document(), flush_results(), pack(), and unpack().


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