|
X-Boost
2.3.8
|
#include <SingleTree.h>
Inherits BoostClassifier< HaarTreeClassifier >, and BaseTrainer.
Public Member Functions | |
| template<class F > | |
| void | InitTrainer (F &f, int preload) |
| Initialize Trainer. | |
| void | ShutdownTrainer () |
| Freed temporary memory before next InitTrainer. | |
| void | Restart () |
| Reset weight and bootstrap from classifier. | |
| template<class FeatureGenerator > | |
| bool | Train (FeatureGenerator &f, bool preload) |
| Esegue un singolo ciclo di training. | |
| bool | Test () |
| Test current network. | |
Public Member Functions inherited from BoostClassifier< HaarTreeClassifier > | |
| BoostClassifier () | |
| ctor | |
| BoostClassifier (std::istream &in) | |
| ctor with file with data | |
| 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 | |
| BoostClassifier (const BoostClassifier< R > &src, P1 p1, P2 p2) | |
| create and convert a classifier | |
| 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 |
| float | operator() (const DataType data) const |
| float | operator() (const DataType data, Param1 p1) const |
| 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) |
Additional Inherited Members | |
Public Types inherited from BoostClassifier< HaarTreeClassifier > | |
|
typedef detail::traits < HaarTreeClassifier::Type, HaarTreeClassifier >::Boosted | BoostedClassifierType |
| A Boosted Classifier (must be a "Real" Classifier) | |
|
typedef std::vector < BoostedClassifierType > | ClassifierListType |
| List of Boosted classifier. | |
|
typedef BoostClassifier < typename HaarTreeClassifier::OptimizedType > | OptimizedType |
| An Optimized Classifier. | |
Static Public Member Functions inherited from BoostClassifier< HaarTreeClassifier > | |
| static std::string | signature () |
| propagate signature | |
Trainer per 2 classi implements AdaBoost.M1 true: class A, false: class B
1.8.7