Public メソッド |
| classifier () |
| デフォルトのコンストラクタ
|
| classifier (const classifier &cls) |
| コピーコンストラクタ
|
classifier & | operator= (const classifier &other) |
| 他の識別器と同じパラメータの識別器となるようにデータをコピーする
|
const std::vector
< weak_classifier_type > & | weak_classifiers () const |
| 分類に使用する弱識別器のリストを取得する
|
std::vector
< weak_classifier_type > & | weak_classifiers () |
| 分類に使用する弱識別器のリストを取得する
|
const std::vector< std::string > & | categories () const |
| 分類に使用するカテゴリのリストを取得する
|
std::vector< std::string > & | categories () |
| 分類に使用するカテゴリのリストを取得する
|
const std::vector< std::vector
< bool > > & | code_word () const |
| 分類に使用する Code Word のリストを取得する
|
std::vector< std::vector< bool > > & | code_word () |
| 分類に使用する Code Word のリストを取得する
|
const std::vector< double > & | alpha () const |
| 分類に使用する係数のリストを取得する
|
std::vector< double > & | alpha () |
| 分類に使用する係数のリストを取得する
|
const std::vector< double > & | beta () const |
| 分類に使用する係数のリストを取得する
|
std::vector< double > & | beta () |
| 分類に使用する係数のリストを取得する
|
template<template< typename, typename > class FEATURE_LIST, class Allocator > |
bool | learn (FEATURE_LIST< feature_type, Allocator > &features, size_type number_of_iterations) |
| 教師データを用いて最適な弱識別器を構築する
|
template<class FEATURE > |
const std::string | operator() (const FEATURE &f) const |
| 学習済みの識別器を用いて特徴量を分類する
|
template<class FEATURE > |
const std::string | evaluate (const FEATURE &f) const |
| 学習済みの識別器を用いて特徴量を分類する
|
template<class FEATURE > |
void | compute_category_ranks (const FEATURE &f, std::vector< pair< double, std::string > > &ranks) const |
| 学習済みの識別器を用いて特徴量を分類し、各カテゴリの重みを列挙する
|
template<template< typename, typename > class FEATURE_LIST, class Allocator > |
double | error_rate (const FEATURE_LIST< feature_type, Allocator > &features) const |
| 学習済みの識別器の分類誤差を計算する
|
bool | save (const std::string &filename) const |
| 学習済みの識別器のパラメータをファイルに保存する
|
bool | load (const std::string &filename) |
| 学習済みの識別器のパラメータをファイルから読み込む
|
template<typename __WEAK_CLASSIFIER__ = threshold_classifier>
class mist::machine_learning::adaboost::classifier< __WEAK_CLASSIFIER__ >
AdaBoost を用いた識別器(マルチクラス対応)