31 #ifndef GRT_DISCRETE_HIDDEN_MARKOV_MODEL_HEADER 32 #define GRT_DISCRETE_HIDDEN_MARKOV_MODEL_HEADER 35 #include "../../Util/GRTCommon.h" 36 #include "../../CoreModules/MLBase.h" 66 Float
predict(
const UINT newSample);
69 bool resetModel(
const UINT numStates,
const UINT numSymbols,
const UINT modelType,
const UINT delta);
80 virtual bool save( std::fstream &file )
const;
88 virtual bool load( std::fstream &file );
90 bool randomizeMatrices(
const UINT numStates,
const UINT numSymbols);
94 virtual bool print()
const;
115 UINT numRandomTrainingIterations;
124 #endif //GRT_HIDDEN_MARKOV_MODEL_HEADER virtual bool predict(VectorFloat inputVector)
virtual bool predict_(VectorFloat &inputVector)
This class acts as the main interface for using a Hidden Markov Model.
virtual bool train(ClassificationData trainingData)
virtual bool save(const std::string &filename) const
virtual bool print() const
virtual bool train_(ClassificationData &trainingData)
virtual bool load(const std::string &filename)
This is the main base class that all GRT machine learning algorithms should inherit from...