|
X-Boost
2.3.8
|
#include <BinaryClassifierOracle.h>
Public Types | |
|
typedef FeatureGenerator::FeatureType | FeatureType |
| The Feature Extracted by FeatureGenerator. | |
|
typedef BinaryClassifier < FeatureType, ClassifierPolicy > | WeakClassifierType |
| The weak classifier provided by this oracle. | |
|
typedef BoostableClassifier < WeakClassifierType > | ClassifierType |
| Additive Regression Final Classifier. | |
Public Member Functions | |
| template<class SourceDataSet > | |
| void | SetTrainingSet (const SourceDataSet &set) |
| Set the training set used to recover the threshold. | |
| void | SetFeatureGenerator (FeatureGenerator &f) |
| Associate a Feature Generator to Decision Stump Generator. | |
| DataSetHandle< Aggregator > & | GetTrainingSet () |
| return R/W the training set | |
| void | SetPreloadSize (int n) |
| void | SetFastHeuristic (bool enable, bool reoptimize, int size) |
| bool | GetHypothesis (WeakClassifierType &bestH) |
| double | Fast_Optimize (WeakClassifierType &h) |
| double | Optimize (WeakClassifierType &h) |
| Using current metrics try to recompute parameters associated to this feature. | |
A base class for training a classifier using Integral Images with some kind of Features (HaarFeature). Find the best threshold of a scalar feature on the trainingset using associated weights, try to maximize AdaBoost W+ param or others Metric
Implements metric based on a list of sorted PatternResponse
| FeatureGenerator | generates Feature of type FeatureType |
|
inline |
versione veloce per calcolare la miglior response che fa uso di un istogramma/bin/bucker per evitare la sort TODO serve, per WeakClassifierType, il valore minimo e massimo della response
| bool BinaryClassifierOracle< FeatureType, ClassifierPolicy, Metric, Aggregator >::GetHypothesis | ( | WeakClassifierType & | bestH | ) |
Return the best h for current data set. This is the real core of this module: test all FeatureType and produce the bestH classifier with the best of them
|
inline |
Enable/Disable the Fast-optimize heuristic
| enable | enable/disable |
| size | number of bins |
|
inline |
Set the preload size
1.8.7