mlpack.hmm_loglik

hmm_loglik(...)
Hidden Markov Model (HMM) Sequence Log-Likelihood

>>> from mlpack import hmm_loglik

This utility takes an already-trained HMM, specified with the 'input_model' parameter, and evaluates the log-likelihood of a sequence of observations, given with the 'input' parameter. The computed log-likelihood is given as output.

For example, to compute the log-likelihood of the sequence 'seq' with the pre-trained HMM 'hmm', the following command may be used:

>>> hmm_loglik(input=seq, input_model=hmm)

input options

output options

The return value from the binding is a dict containing the following elements: