X-Boost  2.3.8
Static Public Member Functions | List of all members
AdaBoostMetric Class Reference

AdaBoost W+ metric (or any metric based on weighted pattern sum) for DecisionStumpPolicy (in this case only used as container for the param recovered) using PatternResponse. More...

#include <WeightedPatternResponse.h>

Static Public Member Functions

static double optimize (DecisionStump< int > &h, const PatternResponse *store, int n, double sum_d) __attribute__((deprecated))
 
static double optimize (DecisionStump< int > &h, const PatternResponse *store, int n, double wp, double wn, bool strictly_growing=false)
 
static double optimize (MultiClassDecisionStumpSingleThreshold< int > &h, const WeightedPatternResponse< int > *store, int n, const double *sum_d)
 
static double optimize (MultiClassDecisionStumpMultiThreshold< int > &h, const WeightedPatternResponse< int > *store, int n, const double *sum_d)
 

Detailed Description

AdaBoost W+ metric (or any metric based on weighted pattern sum) for DecisionStumpPolicy (in this case only used as container for the param recovered) using PatternResponse.

Member Function Documentation

static double AdaBoostMetric::optimize ( DecisionStump< int > &  h,
const PatternResponse store,
int  n,
double  sum_d 
)
static

This function find the best threshold in a DecisionStump maximing W+ parameters (elements over threshold weighted negatively, element lesser or equal of threshold weighted positively)

Parameters
ha DecisionStumpPolicy (in output the threshold and parity fields are setted)
storean array of (sorted) value returned by HaarClassifier
nnumber of stored elements
sum_dsum of store.d element with sign (precomputed)
Returns
the adaboost W+ parameters and set h threshold TODO: change name
static double AdaBoostMetric::optimize ( DecisionStump< int > &  h,
const PatternResponse store,
int  n,
double  wp,
double  wn,
bool  strictly_growing = false 
)
static

This function find the best threshold in a DecisionStump maximing W+ parameters (elements over threshold weighted negatively, element lesser or equal of threshold weighted positively)

Parameters
ha DecisionStumpPolicy (in output the threshold and parity fields are setted)
storean array of (sorted) value returned by HaarClassifier
nnumber of stored elements
wpprecomputed sum of positive elements
wnprecomputed sum of negative elements
strictly_growingsuggest that elements are strictly growing, in order to avoid check element transitions
Returns
the adaboost W+ parameters and set h threshold
static double AdaBoostMetric::optimize ( MultiClassDecisionStumpSingleThreshold< int > &  h,
const WeightedPatternResponse< int > *  store,
int  n,
const double *  sum_d 
)
static

optimize the multiclass problem, single threshold TODO: unimplemented

static double AdaBoostMetric::optimize ( MultiClassDecisionStumpMultiThreshold< int > &  h,
const WeightedPatternResponse< int > *  store,
int  n,
const double *  sum_d 
)
static

optimize the multiclass problem, multiple threshold TODO: unimplemented


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