21 #ifndef _SIMPLE_DECISION_STUMP_H
22 #define _SIMPLE_DECISION_STUMP_H
33 template<
class DataType>
39 typedef int ReturnType;
50 return (value >
th) ? 1 : -1;
53 static std::string signature() {
60 template<
class DataType>
67 template<
class DataType>
68 inline std::ostream & operator << (std::ostream & out, const SimpleDecisionStump<DataType> & s)
Definition: SimpleDecisionStump.h:34
Types involved in boosting.
ClassifierType
Definition: Types.h:31
int evaluate_feature(DataType value) const
convert the feature value to {-1,+1} using internal threshold
Definition: SimpleDecisionStump.h:48
static const ClassifierType Type
SimpleDecisionStump is a DiscreteClassifier.
Definition: SimpleDecisionStump.h:42
DataType th
threshold value
Definition: SimpleDecisionStump.h:37
a dicrete classifier returns {-1,+1}
Definition: Types.h:32