X-Boost  2.3.8
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
RealDecisionStump< DataType > Struct Template Reference

A Weak Classifier based on a Feature Extractor policy. More...

#include <RealDecisionStump.h>

Public Types

typedef float ReturnType
 

Public Member Functions

float evaluate_feature (DataType value) const
 convert the feature value to {p,n} using internal parity and threshold
 
void rescale (int sx, int sy, int sgn)
 this function permits to change the th for rescaling
 
float getAlpha () const
 return the maximum range of data returned
 

Static Public Member Functions

static std::string signature ()
 

Public Attributes

DataType th
 threshold value
 
float pr
 weight associated to positive response (pr) and negative response (nr)
 
float nr
 

Static Public Attributes

static const ClassifierType Type = RealClassifier
 NaiveDecisionStump is a DiscreteClassifier.
 

Detailed Description

template<class DataType>
struct RealDecisionStump< DataType >

A Weak Classifier based on a Feature Extractor policy.

The FeatureExtractor have to implement a response method that returns an integer scalar quantity

Note
value=th is an ambiguos case

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