Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
198 views
in Technique[技术] by (71.8m points)

python - 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?

question from:https://stackoverflow.com/questions/4575041/fitting-a-scikits-learn-hmm-gaussianhmm-to-variable-length-training-sequences

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...