X-Boost  2.3.8
Public Types | Public Member Functions | List of all members
RealDecisionStumpOracle< FeatureGenerator, Aggregator, Metric > Struct Template Reference

#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.
 

Detailed Description

template<class FeatureGenerator, class Aggregator, class Metric>
struct RealDecisionStumpOracle< FeatureGenerator, Aggregator, Metric >

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)

Parameters
FeatureGeneratorgenerates Feature of type FeatureType
Metricmetric used to choose the best feature. RealAdaBoostMetric or GentleAdaBoostMetric.
Note
FeatureType is the type of feature involved in training
PatternType must have a GetWeight() method implemented.

Member Function Documentation

template<class FeatureType , class Aggregator , class Metric >
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

template<class FeatureGenerator , class Aggregator , class Metric >
void RealDecisionStumpOracle< FeatureGenerator, Aggregator, Metric >::SetPreloadSize ( int  n)
inline

Set the preload size


The documentation for this struct was generated from the following file: