29 #ifndef GRT_DECISION_STUMP_HEADER 30 #define GRT_DECISION_STUMP_HEADER 107 virtual void print()
const;
112 UINT getDecisionFeatureIndex()
const;
117 UINT getDirection()
const;
122 UINT getNumRandomSplits()
const;
127 Float getDecisionValue()
const;
140 #endif //GRT_DECISION_STUMP_HEADER static RegisterWeakClassifierModule< DecisionStump > registerModule
This is used to register the DecisionStump with the WeakClassifier base class.
virtual Float predict(const VectorFloat &x)
UINT direction
Indicates if the decision spilt threshold is greater than (1), or less than (0)
virtual bool deepCopyFrom(const WeakClassifier *weakClassifer)
Float decisionValue
The decision spilt threshold.
virtual bool saveModelToFile(std::fstream &file) const
virtual bool train(ClassificationData &trainingData, VectorFloat &weights)
This is the main base class for all GRT WeakClassifiers.
virtual bool loadModelFromFile(std::fstream &file)
WeakClassifier & operator=(const WeakClassifier &rhs)
UINT numRandomSplits
The number of random splits used to search for the best decision spilt.
UINT decisionFeatureIndex
The dimension that the data will be spilt on.
virtual void print() const