[問題] hmmlearn 錯誤訊息

看板Python作者 (apple)時間6年前 (2019/07/30 07:40), 編輯推噓0(001)
留言1則, 1人參與, 6年前最新討論串1/1
各位大大好, 我用python hmmlearn package 使用GaussianHmm時 model = hmm.GaussianHMM(n_components=10, covariance_type='full',min_covar =0.00001, tol=0.0001, n_iter=NUM_ITERS, init_params='stmc') model.fit(train_dataset) 程式執行有時會有錯誤訊息(有時正常執行) 如下: component 3 of 'full' covars must be symmetric, positive-definite 修改covariance_type='spherical' 也會有錯誤訊息 如下: 'spherical' covars must be non-negative 請問有人知道這個問題如何解決嗎 非常謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.193.7.161 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1564443622.A.B7A.html

07/30 11:08, 6年前 , 1F
找個範例試了下沒錯誤 https://tinyurl.com/y4ahxwtt
07/30 11:08, 1F
文章代碼(AID): #1TFuFcjw (Python)
文章代碼(AID): #1TFuFcjw (Python)