26 #ifndef GRT_BAG_HEADER 27 #define GRT_BAG_HEADER 29 #include "../../CoreModules/Classifier.h" 52 BAG(
bool useScaling=
false);
72 BAG &operator=(
const BAG &rhs);
106 virtual bool reset();
114 virtual bool clear();
123 virtual bool save( std::fstream &file )
const;
132 virtual bool load( std::fstream &file );
139 UINT getEnsembleSize()
const;
163 bool addClassifierToEnsemble(
const Classifier &classifier,Float weight=1);
170 bool clearEnsemble();
189 static std::string
getId();
198 bool loadLegacyModelFromFile( std::fstream &file );
205 static const std::string id;
210 #endif //GRT_BAG_HEADER
std::string getId() const
virtual bool predict_(VectorFloat &inputVector)
virtual bool save(const std::string &filename) const
virtual bool deepCopyFrom(const Classifier *classifier)
virtual bool train_(ClassificationData &trainingData)
virtual bool load(const std::string &filename)
This is the main base class that all GRT Classification algorithms should inherit from...