21 #ifndef _NAIVE_DECISIONSTUMP_H
22 #define _NAIVE_DECISIONSTUMP_H
31 typedef int ReturnType;
40 template<
class DataType>
43 return (value > DataType(0) ) ? 1 : -1;
46 static std::string signature() {
ClassifierType
Definition: Types.h:31
Definition: NaiveDecisionStump.h:29
static int evaluate_feature(DataType value)
convert the feature value to {-1,+1} using 0 as threshold
Definition: NaiveDecisionStump.h:41
a dicrete classifier returns {-1,+1}
Definition: Types.h:32
static const ClassifierType Type
NaiveDecisionStump is a DiscreteClassifier.
Definition: NaiveDecisionStump.h:34