|
X-Boost
2.3.8
|
#include <BoostClassifier.h>
Public Types | |
|
typedef detail::traits < Classifier::Type, Classifier > ::Boosted | BoostedClassifierType |
| A Boosted Classifier (must be a "Real" Classifier) | |
|
typedef std::vector < BoostedClassifierType > | ClassifierListType |
| List of Boosted classifier. | |
|
typedef BoostClassifier < typename Classifier::OptimizedType > | OptimizedType |
| An Optimized Classifier. | |
Public Member Functions | |
| BoostClassifier () | |
| ctor | |
| BoostClassifier (std::istream &in) | |
| ctor with file with data | |
| template<class R , class P0 , class P1 , class P2 > | |
| BoostClassifier (const BoostClassifier< R > &src, P0 scale, P1 p1, P2 p2) | |
| genera un BoostClassifier partendo da un altro BoostClassifier, ed eseguendo un rescaling di tutti i classificatori | |
| template<class R , class P1 , class P2 > | |
| BoostClassifier (const BoostClassifier< R > &src, P1 p1, P2 p2) | |
| create and convert a classifier | |
| template<class R , class P1 > | |
| BoostClassifier (const BoostClassifier< R > &src, const P1 &p1) | |
| create and convert a classifier | |
| ~BoostClassifier () | |
| dtor | |
| int | size () const |
| return the number of weak classifiers | |
| ClassifierListType & | list () |
| Return the inner list of classifier. | |
| const ClassifierListType & | list () const |
| template<class DataType > | |
| float | operator() (const DataType data) const |
| template<class DataType , class Param1 > | |
| float | operator() (const DataType data, Param1 p1) const |
| template<class FeatureType > | |
| void | export_features (std::vector< FeatureType > &out) const |
| export all features; | |
| void | load (std::istream &in) |
| void | save (std::ostream &out) const |
| void | sort () |
| void | resize (int size) |
| Reduce number of classifiers (remove the last or, after sort(), the low influence ones) | |
| float | max_response () const |
| void | insert (const BoostedClassifierType &classifier) |
Static Public Member Functions | |
| static std::string | signature () |
| propagate signature | |
A classifier that classifies using a majority vote of N (weak) classifier. Classifier could be any kind of weak classifier (Discrete or Real) Result are voted for majority
| void BoostClassifier< T >::load | ( | std::istream & | in | ) |
load weak classifier from a stream
|
inline |
return the sum alphas associated to weak classifiers
|
inline |
The classifier operator. Runs the weak classifier and returns the sum of responses
|
inline |
The classifier operator. Runs the weak classifier and returns the sum of responses
| void BoostClassifier< T >::save | ( | std::ostream & | out | ) | const |
save weak classifier onto a stream
| void BoostClassifier< T >::sort | ( | ) |
1.8.7