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

#include <datum_to_fv_converter.hpp>

Collaboration diagram for jubatus::core::fv_converter::datum_to_fv_converter:
Collaboration graph

Public Member Functions

void add_weight (const std::string &key, float weight)
 
void clear_rules ()
 
void clear_weights ()
 
void convert (const datum &datum, common::sfv_t &ret_fv) const
 
void convert_and_update_weight (const datum &datum, common::sfv_t &ret_fv)
 
 datum_to_fv_converter ()
 
void register_binary_rule (const std::string &name, jubatus::util::lang::shared_ptr< key_matcher > matcher, jubatus::util::lang::shared_ptr< binary_feature > feature_func)
 
void register_combination_rule (const std::string &name, jubatus::util::lang::shared_ptr< key_matcher > matcher_left, jubatus::util::lang::shared_ptr< key_matcher > matcher_right, jubatus::util::lang::shared_ptr< combination_feature > feature_func)
 
void register_num_filter (jubatus::util::lang::shared_ptr< key_matcher > matcher, jubatus::util::lang::shared_ptr< num_filter > filter, const std::string &suffix)
 
void register_num_rule (const std::string &name, jubatus::util::lang::shared_ptr< key_matcher > matcher, jubatus::util::lang::shared_ptr< num_feature > feature_func)
 
void register_string_filter (jubatus::util::lang::shared_ptr< key_matcher > matcher, jubatus::util::lang::shared_ptr< string_filter > filter, const std::string &suffix)
 
void register_string_rule (const std::string &name, jubatus::util::lang::shared_ptr< key_matcher > matcher, jubatus::util::lang::shared_ptr< string_feature > splitter, const std::vector< splitter_weight_type > &weights)
 
void revert_feature (const std::string &feature, std::pair< std::string, std::string > &expect) const
 
void set_hash_max_size (uint64_t hash_max_size)
 
void set_weight_manager (jubatus::util::lang::shared_ptr< weight_manager > wm)
 
 ~datum_to_fv_converter ()
 

Private Attributes

jubatus::util::lang::scoped_ptr< datum_to_fv_converter_implpimpl_
 

Detailed Description

Definition at line 68 of file datum_to_fv_converter.hpp.

Constructor & Destructor Documentation

jubatus::core::fv_converter::datum_to_fv_converter::datum_to_fv_converter ( )

Definition at line 574 of file datum_to_fv_converter.cpp.

575  : pimpl_(new datum_to_fv_converter_impl()) {
576 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
jubatus::core::fv_converter::datum_to_fv_converter::~datum_to_fv_converter ( )

Definition at line 578 of file datum_to_fv_converter.cpp.

578  {
579 }

Member Function Documentation

void jubatus::core::fv_converter::datum_to_fv_converter::add_weight ( const std::string &  key,
float  weight 
)

Definition at line 644 of file datum_to_fv_converter.cpp.

References pimpl_.

644  {
645  pimpl_->add_weight(key, weight);
646 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::clear_rules ( )

Definition at line 592 of file datum_to_fv_converter.cpp.

References pimpl_.

Referenced by jubatus::core::fv_converter::initialize_converter().

592  {
593  pimpl_->clear_rules();
594 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_

Here is the caller graph for this function:

void jubatus::core::fv_converter::datum_to_fv_converter::clear_weights ( )

Definition at line 663 of file datum_to_fv_converter.cpp.

References pimpl_.

663  {
664  pimpl_->clear_weights();
665 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::convert ( const datum datum,
common::sfv_t ret_fv 
) const

Definition at line 581 of file datum_to_fv_converter.cpp.

References pimpl_.

582  {
583  pimpl_->convert(datum, ret_fv);
584 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::convert_and_update_weight ( const datum datum,
common::sfv_t ret_fv 
)

Definition at line 586 of file datum_to_fv_converter.cpp.

References pimpl_.

588  {
589  pimpl_->convert_and_update_weight(datum, ret_fv);
590 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::register_binary_rule ( const std::string &  name,
jubatus::util::lang::shared_ptr< key_matcher matcher,
jubatus::util::lang::shared_ptr< binary_feature feature_func 
)

Definition at line 625 of file datum_to_fv_converter.cpp.

References pimpl_.

628  {
629  pimpl_->register_binary_rule(name, matcher, feature_func);
630 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::register_combination_rule ( const std::string &  name,
jubatus::util::lang::shared_ptr< key_matcher matcher_left,
jubatus::util::lang::shared_ptr< key_matcher matcher_right,
jubatus::util::lang::shared_ptr< combination_feature feature_func 
)

Definition at line 632 of file datum_to_fv_converter.cpp.

References pimpl_.

636  {
637  pimpl_->register_combination_rule(
638  name,
639  matcher_left,
640  matcher_right,
641  feature_func);
642 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::register_num_filter ( jubatus::util::lang::shared_ptr< key_matcher matcher,
jubatus::util::lang::shared_ptr< num_filter filter,
const std::string &  suffix 
)

Definition at line 603 of file datum_to_fv_converter.cpp.

References pimpl_.

606  {
607  pimpl_->register_num_filter(matcher, filter, suffix);
608 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::register_num_rule ( const std::string &  name,
jubatus::util::lang::shared_ptr< key_matcher matcher,
jubatus::util::lang::shared_ptr< num_feature feature_func 
)

Definition at line 618 of file datum_to_fv_converter.cpp.

References pimpl_.

621  {
622  pimpl_->register_num_rule(name, matcher, feature_func);
623 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::register_string_filter ( jubatus::util::lang::shared_ptr< key_matcher matcher,
jubatus::util::lang::shared_ptr< string_filter filter,
const std::string &  suffix 
)

Definition at line 596 of file datum_to_fv_converter.cpp.

References pimpl_.

599  {
600  pimpl_->register_string_filter(matcher, filter, suffix);
601 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::register_string_rule ( const std::string &  name,
jubatus::util::lang::shared_ptr< key_matcher matcher,
jubatus::util::lang::shared_ptr< string_feature splitter,
const std::vector< splitter_weight_type > &  weights 
)

Definition at line 610 of file datum_to_fv_converter.cpp.

References pimpl_.

614  {
615  pimpl_->register_string_rule(name, matcher, splitter, weights);
616 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::revert_feature ( const std::string &  feature,
std::pair< std::string, std::string > &  expect 
) const

Definition at line 648 of file datum_to_fv_converter.cpp.

References pimpl_.

650  {
651  pimpl_->revert_feature(feature, expect);
652 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_
void jubatus::core::fv_converter::datum_to_fv_converter::set_hash_max_size ( uint64_t  hash_max_size)

Definition at line 654 of file datum_to_fv_converter.cpp.

References pimpl_.

Referenced by jubatus::core::fv_converter::initialize_converter().

654  {
655  pimpl_->set_hash_max_size(hash_max_size);
656 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_

Here is the caller graph for this function:

void jubatus::core::fv_converter::datum_to_fv_converter::set_weight_manager ( jubatus::util::lang::shared_ptr< weight_manager wm)

Definition at line 658 of file datum_to_fv_converter.cpp.

References pimpl_.

659  {
660  pimpl_->set_weight_manager(wm);
661 }
jubatus::util::lang::scoped_ptr< datum_to_fv_converter_impl > pimpl_

Member Data Documentation

jubatus::util::lang::scoped_ptr<datum_to_fv_converter_impl> jubatus::core::fv_converter::datum_to_fv_converter::pimpl_
private

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