Matlab高斯混合模型报错:Undefined function 'fitgmdist' for input arguments of type 'struct'

我的未来我决定 提交于 2019-11-26 05:23:23

工作环境(蓝色粗体字为特别注意内容)
1,软件环境:Windows 7 Ultimate sp1、matlabR2012b 32bit
2,参考文献:①
https://jp.mathworks.com/products/statistics.htmlhttps://blog.csdn.net/zhansama/article/details/82745128

Matlab2012b中使用高斯混合模型报错:

gm = fitgmdist(X,2,'Options',options)

Undefined function 'fitgmdist' for input arguments of type 'struct'.
了解相关信息,发现fitgmdist函数是Statistics and Machine Learning Toolbox工具箱中的东西,一筹莫展之际,看到了参考文献②,于是将高斯混合模型改为:

gm=gmdistribution.fit(X,2,'Covtype','Diagonal','Regularize',1e-10,'Options',options);

顺利执行。

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!