TadieB / HMM

An implementation of hidden Markov models in MATLAB.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HMM

This is an implementation of Hidden Markov Models, with the following algorithms:

  1. forward algorithm for evaluationg the probability of a HMM
  2. Viterbi algorithm for decoding sequence of states a model went through
  3. Baum-Welch algorithm for training a HMM

To test the algorithms, run:

  • runtests.m - tests algorithms 1 and 2, generates HMM models, uses one of them to generate observations, then computes probability that they were generated by each model; outputs and plots results

  • baum_welch_test_mine.m - tests algorithm 3, uses some random parameters to generate a model, and a set of observations, trains the model and outputs its parameters and a plot of its relative performance after training

About

An implementation of hidden Markov models in MATLAB.


Languages

Language:MATLAB 98.2%Language:M 1.4%Language:Objective-C 0.4%