---
name: "mlpack_hmm_viterbi"
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_viterbi"
---

# mlpack\_hmm\_viterbi(1)

hidden markov model (hmm) viterbi state prediction

## NAME

**mlpack\_hmm\_viterbi** - hidden markov model (hmm) viterbi state prediction

## SYNOPSIS

```
 mlpack_hmm_viterbi -i unknown -m unknown [-V bool] [-o unknown] [-h -v]
```

## DESCRIPTION

This utility takes an already-trained HMM, specified as '**--input\_model\_file** (**-m**)', and evaluates the most probable hidden state sequence of a given sequence of observations (specified as ''**--input\_file** (**-i**)', using the Viterbi algorithm. The computed state sequence may be saved using the '**--output\_file** (**-o**)' output parameter.

For example, to predict the state sequence of the observations 'obs.csv' using the HMM 'hmm.bin', storing the predicted state sequence to 'states.csv', the following command could be used:

$ **mlpack\_hmm\_viterbi** **--input\_file** obs.csv **--input\_model\_file** hmm.bin **--output\_file** states.csv

## REQUIRED INPUT OPTIONS

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

  Matrix containing observations,

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

  Trained HMM to use.

## 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

**--output\_file** (**-o**) \[*unknown*\] File to save predicted state sequence to.

## 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.
