45 #ifndef GRT_ADABOOST_HEADER
46 #define GRT_ADABOOST_HEADER
48 #include "../../CoreModules/Classifier.h"
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();
227 bool loadLegacyModelFromFile( std::fstream &file );
229 UINT numBoostingIterations;
230 UINT predictionMethod;
245 #endif //GRT_ADABOOST_HEADER
bool setPredictionMethod(UINT predictionMethod)
virtual bool predict(VectorFloat inputVector)
This file implements a container for an AdaBoost class model.
virtual bool predict_(VectorFloat &inputVector)
AdaBoost(const WeakClassifier &weakClassifier=DecisionStump(), bool useScaling=false, bool useNullRejection=false, Float nullRejectionCoeff=10.0, UINT numBoostingIterations=20, UINT predictionMethod=MAX_VALUE)
virtual bool train(ClassificationData trainingData)
virtual bool train_(ClassificationData &trainingData)
virtual bool loadModelFromFile(std::fstream &file)
bool setNumBoostingIterations(UINT numBoostingIterations)
virtual bool saveModelToFile(std::fstream &file) const
bool addWeakClassifier(const WeakClassifier &weakClassifer)
virtual bool recomputeNullRejectionThresholds()
virtual bool saveModelToFile(std::string filename) const
virtual bool deepCopyFrom(const Classifier *classifier)
virtual bool predict_(VectorFloat &inputVector)
bool clearWeakClassifiers()
virtual bool loadModelFromFile(std::string filename)
Vector< AdaBoostClassModel > getModels() const
bool setWeakClassifier(const WeakClassifier &weakClassifer)
virtual bool train_(ClassificationData &trainingData)
AdaBoost & operator=(const AdaBoost &rhs)
bool setNullRejectionCoeff(Float nullRejectionCoeff)
This class implements a Radial Basis Function Weak Classifier. The Radial Basis Function (RBF) class ...
This class implements a DecisionStump, which is a single node of a DecisionTree.