Christian
Christian

Reputation: 2282

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?

Upvotes: 38

Views: 2336

Answers (1)

nothize
nothize

Reputation: 108

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

Upvotes: 7

Related Questions