21 #ifndef _BAYESIAN_STUMP_H
22 #define _BAYESIAN_STUMP_H
38 template<
class DataType>
55 typedef int ReturnType;
63 int evaluate_feature(DataType response)
const {
71 static std::string signature() {
72 return "bayesianstump";
77 template<
class DataType>
87 template<
class DataType>
88 std::ostream & operator << (std::ostream & out, const BayesianStump<DataType> & s)
90 out << s.bin_size <<
' ' << s.m_minFeatValue <<
' ' << s.m_featRange <<
' ' << (
unsigned int) s.m_truthTable;
uint32_t m_truthTable
truth table (BinSize bin) 1:+ 0:-
Definition: BayesianStump.h:52
Types involved in boosting.
ClassifierType
Definition: Types.h:31
static const ClassifierType Type
BayesianStump is a DiscreteClassifier.
Definition: BayesianStump.h:58
Definition: BayesianStump.h:39
DataType m_minFeatValue
minimum feature value
Definition: BayesianStump.h:47
static const int bin_size
limit to 32bit thruth table
Definition: BayesianStump.h:42
additional typedef, for portability under win32
DataType m_featRange
feature range values
Definition: BayesianStump.h:49
a dicrete classifier returns {-1,+1}
Definition: Types.h:32