|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
# e7 c% Q; D3 q% L+ i
Matlab2012b中使用高斯混合模型报错:2 a. C5 p. Z. P2 n
9 W8 i5 s! S$ X' t% I* {- m
gm = fitgmdist(X,2,'Options',options)
, n$ o9 j. {6 a- @6 f d
! l8 A8 R9 [6 \, rUndefined function 'fitgmdist' for input arguments of type 'struct'.
1 P) E$ t+ V/ ]& U' j( L# i* h/ ^( ]了解相关信息,发现fitgmdist函数是Statistics and Machine Learning Toolbox工具箱中的东西,一筹莫展之际,看到了参考文献②,于是将高斯混合模型改为:% d4 i7 t" I0 Z! ^$ p1 N+ ^% T
( C: p; f+ W: h0 B
gm=gmdistribution.fit(X,2,'Covtype','Diagonal','Regularize',1e-10,'Options',options);( W$ t; U8 ~2 a
6 N s* @4 Z! [4 f顺利执行。
- [9 \* R- O, S
. y, z- D3 \% u# n. L# c4 V' U |
|