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

#include <regression_factory.hpp>

Collaboration diagram for jubatus::core::regression::regression_factory:
Collaboration graph

Static Public Member Functions

static jubatus::util::lang::shared_ptr< regression_basecreate_regression (const std::string &name, const common::jsonconfig::config &param, jubatus::util::lang::shared_ptr< storage::storage_base > storage)
 

Detailed Description

Definition at line 44 of file regression_factory.hpp.

Member Function Documentation

shared_ptr< regression_base > jubatus::core::regression::regression_factory::create_regression ( const std::string &  name,
const common::jsonconfig::config param,
jubatus::util::lang::shared_ptr< storage::storage_base storage 
)
static

Definition at line 33 of file regression_factory.cpp.

References JUBATUS_EXCEPTION.

36  {
37  if (name == "PA" || name == "passive_aggressive") {
38  return shared_ptr<regression_base>(new regression::passive_aggressive(
39  config_cast_check<regression::passive_aggressive::config>(param),
40  storage));
41  } else {
42  throw JUBATUS_EXCEPTION(common::unsupported_method(name));
43  }
44 }
#define JUBATUS_EXCEPTION(e)
Definition: exception.hpp:79

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