看板 Python 關於我們 聯絡資訊
各位大大好, 我用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
alvinlin: 找個範例試了下沒錯誤 https://tinyurl.com/y4ahxwtt 07/30 11:08