37 #ifndef GRT_BAG_HEADER
38 #define GRT_BAG_HEADER
40 #include "../../CoreModules/Classifier.h"
52 BAG(
bool useScaling=
false);
106 virtual bool reset();
114 virtual bool clear();
193 bool loadLegacyModelFromFile( std::fstream &file );
203 #endif //GRT_BAG_HEADER
virtual bool predict(VectorFloat inputVector)
const Vector< Classifier * > getEnsemble() const
VectorFloat getEnsembleWeights() const
virtual bool predict_(VectorFloat &inputVector)
UINT getEnsembleSize() const
virtual bool train(ClassificationData trainingData)
BAG(bool useScaling=false)
virtual bool deepCopyFrom(const Classifier *classifier)
virtual bool saveModelToFile(std::fstream &file) const
virtual bool saveModelToFile(std::string filename) const
bool addClassifierToEnsemble(const Classifier &classifier, Float weight=1)
virtual bool loadModelFromFile(std::string filename)
virtual bool train_(ClassificationData &trainingData)
virtual bool train_(ClassificationData &trainingData)
BAG & operator=(const BAG &rhs)
virtual bool predict_(VectorFloat &inputVector)
virtual bool loadModelFromFile(std::fstream &file)
bool setWeights(const VectorFloat &weights)