mlpack: a scalable c++ machine learning library
mlpack  2.2.2
mlpack::hmm Namespace Reference

Hidden Markov Models. More...

Classes

class  HMM
 A class that represents a Hidden Markov Model with an arbitrary type of emission distribution. More...

 
class  HMMRegression
 A class that represents a Hidden Markov Model Regression (HMMR). More...

 

Enumerations

enum  HMMType
: char {
  DiscreteHMM
= 0,
  GaussianHMM
,
  GaussianMixtureModelHMM

}
 HMMType, to be stored on disk. More...

 

Functions

template
<
typename
ActionType
,
typename
ExtraInfoType
=
void
>
void LoadHMMAndPerformAction (const std::string &modelFile, ExtraInfoType *x=NULL)
 ActionType should implement static void Apply(HMMType&). More...

 
template
<
typename
HMMType
>
void SaveHMM (HMMType &hmm, const std::string &modelFile)
 Save an HMM to a file. More...

 

Detailed Description

Hidden Markov Models.

Enumeration Type Documentation

◆ HMMType

enum mlpack::hmm::HMMType : char

HMMType, to be stored on disk.

This is of type char, which is one byte. (I'm not sure what will happen on systems where one byte is not eight bits.)

Enumerator
DiscreteHMM 
GaussianHMM 
GaussianMixtureModelHMM 

Definition at line 22 of file hmm_util.hpp.

Function Documentation

◆ LoadHMMAndPerformAction()

template
<
typename
ActionType
,
typename
ExtraInfoType
=
void
>
void mlpack::hmm::LoadHMMAndPerformAction ( const std::string &  modelFile,
ExtraInfoType *  x = NULL 
)

ActionType should implement static void Apply(HMMType&).

◆ SaveHMM()

template
<
typename
HMMType
>
void mlpack::hmm::SaveHMM ( HMMType hmm,
const std::string &  modelFile 
)

Save an HMM to a file.

The file must also encode what type of HMM is being stored.