---
name: "mlpack_hmm_loglik"
section: "1"
platform: "linux"
package: "mlpack-bin"
version: "4.6.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_hmm_loglik"
---

# mlpack\_hmm\_loglik(1)

hidden markov model (hmm) sequence log-likelihood

## NAME

**mlpack\_hmm\_loglik** - hidden markov model (hmm) sequence log-likelihood

## SYNOPSIS

```
 mlpack_hmm_loglik -i unknown -m unknown [-V bool] [--log_likelihood double] [-h -v]
```

## DESCRIPTION

This utility takes an already-trained HMM, specified with the ’**--input\_model\_file** (**-m**)' parameter, and evaluates the log-likelihood of a sequence of observations, given with the '**--input\_file** (**-i**)' parameter. The computed log-likelihood is given as output.

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

$ **mlpack\_hmm\_loglik** **--input\_file** seq.csv **--input\_model\_file** hmm.bin

## REQUIRED INPUT OPTIONS

- **--input\_file (-i) \[*unknown*\]**

  File containing observations,

- **--input\_model\_file (-m) \[*unknown*\]**

  File containing HMM.

## OPTIONAL INPUT OPTIONS

- **--help (-h) \[*bool*\]**

  Default help info.

- **--info \[string\]**

  Print help on a specific option. Default value ''.

- **--verbose (-v) \[*bool*\]**

  Display informational messages and the full list of parameters and timers at the end of execution.

- **--version (-V) \[*bool*\]**

  Display the version of mlpack.

## OPTIONAL OUTPUT OPTIONS

- **--log\_likelihood \[*double*\]**

  Log-likelihood of the sequence. Default value 0.

## ADDITIONAL INFORMATION

For further information, including relevant papers, citations, and theory, consult the documentation found at http://www.mlpack.org or included with your distribution of mlpack.
