38

I'd like to fit a scikits.learn.hmm.GaussianHMM to training sequences of different length. The fit method, however, prevents using sequences of different length by doing

obs = np.asanyarray(obs)

which only works on a list of equally shaped arrays. Does anyone have a hint on how to proceed?

ogrisel
  • 39,309
  • 12
  • 116
  • 125
Christian
  • 2,214
  • 4
  • 26
  • 37
  • 3
    Unfortunately, this is only one of the issues of the HMM in scikit-learn; it's also lacks numerical stability. There has talk on the mailing list of perhaps dropping it not too long ago. – Fred Foo Jul 08 '11 at 23:33

1 Answers1

7

You may do re-sampling to "reshape" a given input to the desired length.

nothize
  • 108
  • 1
  • 7