26 #ifndef GRT_GMM_HEADER 27 #define GRT_GMM_HEADER 29 #include "../../CoreModules/Classifier.h" 30 #include "../../ClusteringModules/GaussianMixtureModels/GaussianMixtureModels.h" 33 #define GMM_MIN_SCALE_VALUE 0.0001 34 #define GMM_MAX_SCALE_VALUE 1.0 54 GMM(UINT numMixtureModels = 2,
bool useScaling=
false,
bool useNullRejection=
false,Float nullRejectionCoeff=1.0,UINT maxIter=100,Float minChange=1.0e-5);
74 GMM &operator=(
const GMM &rhs);
110 virtual bool clear();
119 virtual bool save( std::fstream &file )
const;
128 virtual bool load( std::fstream &file );
143 UINT getNumMixtureModels();
160 bool setNumMixtureModels(
const UINT K);
170 GRT_DEPRECATED_MSG(
"Use the base class function, setMaxNumEpochs(const UINT maxNumEpochs) instead",
bool setMaxIter(UINT maxIter) );
177 static std::string
getId();
186 Float computeMixtureLikelihood(
const VectorFloat &x,UINT k);
187 bool loadLegacyModelFromFile( std::fstream &file );
189 UINT numMixtureModels;
194 static const std::string id;
199 #endif //GRT_GMM_HEADER std::string getId() const
virtual bool recomputeNullRejectionThresholds()
virtual bool predict_(VectorFloat &inputVector)
virtual bool save(const std::string &filename) const
This class implements a MixtureModel, which is a container for holding a class model for the GRT::GMM...
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...