26 #ifndef GRT_ADABOOST_HEADER 27 #define GRT_ADABOOST_HEADER 29 #include "../../CoreModules/Classifier.h" 58 enum PredictionMethods{MAX_POSITIVE_VALUE=0,MAX_VALUE};
70 AdaBoost(
const WeakClassifier &weakClassifier =
DecisionStump(),
bool useScaling=
false,
bool useNullRejection=
false,Float nullRejectionCoeff=10.0,UINT numBoostingIterations=20,UINT predictionMethod=MAX_VALUE);
125 virtual bool clear();
134 virtual bool save( std::fstream &file )
const;
143 virtual bool load( std::fstream &file );
186 bool clearWeakClassifiers();
194 bool setNumBoostingIterations(UINT numBoostingIterations);
202 bool setPredictionMethod(UINT predictionMethod);
223 static std::string
getId();
234 bool loadLegacyModelFromFile( std::fstream &file );
236 UINT numBoostingIterations;
237 UINT predictionMethod;
243 static const std::string id;
248 #endif //GRT_ADABOOST_HEADER std::string getId() const
virtual bool predict(VectorFloat inputVector)
virtual bool recomputeNullRejectionThresholds()
This file implements a container for an AdaBoost class model.
virtual bool predict_(VectorFloat &inputVector)
virtual bool setNullRejectionCoeff(const Float nullRejectionCoeff)
virtual bool train(ClassificationData trainingData)
virtual bool save(const std::string &filename) const
virtual bool deepCopyFrom(const Classifier *classifier)
Vector< AdaBoostClassModel > getModels() const
virtual bool train_(ClassificationData &trainingData)
This class implements a Radial Basis Function Weak Classifier. The Radial Basis Function (RBF) class ...
virtual bool load(const std::string &filename)
This class implements a DecisionStump, which is a single node of a DecisionTree.
This is the main base class that all GRT Classification algorithms should inherit from...