|
X-Boost
2.3.8
|
#include <RealDecisionStumpOracle.h>
Inherits Metric.
Public Types | |
|
typedef FeatureGenerator::FeatureType | FeatureType |
| The Feature Extracted by FeatureGenerator. | |
|
typedef BinaryClassifier < FeatureType, RealDecisionStump< int > > | ClassifierType |
| The weak classifier provided by this oracle. | |
Public Member Functions | |
| void | SetTrainingSet (const DataSetHandle< Aggregator > &set) |
| Set the training set used train the classifier. | |
| void | SetFeatureGenerator (FeatureGenerator &f) |
| Associate a Feature Generator to Decision Stump Generator. | |
| void | SetFastHeuristic (bool enable, bool reoptimize, int size) |
| DataSetHandle< Aggregator > & | GetTrainingSet () |
| return R/W the training set | |
| void | SetPreloadSize (int n) |
| bool | GetHypothesis (ClassifierType &bestH) |
| double | Optimize (ClassifierType &h) |
| Using current metrics try to recompute parameters associated to this feature. | |
A base class for training a Real Decision Stump classifier using scalar features Find the threshold and the weight for a RealDecisionStump using different Metric(s) (for example RealAdaBoost or GentleAdaBoost metrics)
| FeatureGenerator | generates Feature of type FeatureType |
| Metric | metric used to choose the best feature. RealAdaBoostMetric or GentleAdaBoostMetric. |
| bool RealDecisionStumpOracle< FeatureType, Aggregator, Metric >::GetHypothesis | ( | ClassifierType & | 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 |
Set the preload size
1.8.7