Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fitting a scikits.learn.hmm.GaussianHMM to variable length training sequences

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?

like image 417
Christian Avatar asked Jan 01 '11 18:01

Christian


1 Answers

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

like image 68
nothize Avatar answered Oct 03 '22 02:10

nothize