我有一個Python hmmlearn庫的問題。這是我有幾個訓練集,我想有一個高斯混合HMM模型來適應他們。如何用GMMHMM擬合多個序列?
Here is an example working with multiple sequences.
X = np.concatenate([X1, X2])
lengths = [len(X1), len(X2)]
hmm.GaussianHMM(n_components=3).fit(X, lengths)
當我改變GaussianHMM到GMMHMM,它返回以下錯誤:
hmm.GMMHMM(n_components=3).fit(X, lengths)
Traceback (most recent call last):
File "C:\Users\Cody\workspace\QuickSilver_HMT\hmm_list_sqlite.py", line 141, in hmm_list_pickle
hmm.GMMHMM(n_components=3).fit(X, lengths)
File "build\bdist.win32\egg\hmmlearn\hmm.py", line 998, in fit
raise ValueError("'lengths' argument is not supported yet")
ValueError: 'lengths' argument is not supported yet
怎麼能適應多個序列與GMMHMM?
您的示例適用於本教程中的X1,X2值。嘗試將hmmlearn更新爲最新版本。 – ppasler
最新版本是0.2.1? – Cody