larsmans/seqlearn — pull request #1 by kmike (2013-08-03 11:12:33+00:00)
Title: vectorized viterbi decoding

Hi,

Here is vectorized viterbi function. I didn't get how to vectorize it using outer products, so I just rewrote inner loop using numpy vectorized operations. For my data (20 states, 30k samples) it makes StructuredPerceptron.fit 4x faster.