{"id":1219,"date":"2014-04-29T11:33:44","date_gmt":"2014-04-29T03:33:44","guid":{"rendered":"http:\/\/blog.dayandcarrot.net\/?p=1219"},"modified":"2014-04-29T11:33:44","modified_gmt":"2014-04-29T03:33:44","slug":"matlab%e4%bd%bf%e7%94%a8gaussian-mixture-model-gmm%e5%81%9a%e5%88%86%e7%b1%bb%e5%99%a8","status":"publish","type":"post","link":"https:\/\/dayandcarrot.space\/?p=1219","title":{"rendered":"Matlab\u4f7f\u7528Gaussian Mixture Model (GMM)\u505a\u5206\u7c7b\u5668"},"content":{"rendered":"<p>Matlab\u771f\u662f\u7528\u6765\u6d4b\u8bd5\u7b97\u6cd5\u7684\u597d\u4e1c\u897f\u554a~\u4e00\u4e9b\u5f88\u57fa\u7840\u7684\u4e1c\u897f\u90fd\u63d0\u4f9b\u4e86~<br \/>\n\u6211\u662f\u5728R2014a\u4e2d\u4f7f\u7528\u7684\uff0c\u53ef\u80fd\u662f\u8981\u88c5\u7edf\u8ba1\u5b66\u6a21\u578b\u7684\u4ec0\u4e48\u63d2\u4ef6\uff0c\u4e0d\u8fc7\u6211\u4e4b\u524d\u5b89\u88c5\u7684\u65f6\u5019\u628a\u5404\u79cd\u63d2\u4ef6\u90fd\u9009\u4e86\uff0c\u6240\u4ee5\u6ca1\u5565\u95ee\u9898\u5566~<br \/>\n\u4e3b\u8981\u51fd\u6570\u6709\u8fd9\u4e48\u51e0\u4e2a\uff1a<\/p>\n<h1>1.fitgmdist<\/h1>\n<p>\u8fd9\u4e2a\u662f\u7528\u6765\u62df\u5408GMM\u6a21\u578b\u7684\uff0c\u5176\u4e2dX\u662f\u8bad\u7ec3\u96c6\u6570\u636e(\u4e00\u884c\u662f\u4e00\u4e2a\u89c2\u6d4b\u503cobservation\uff0c\u6bcf\u5217\u4e00\u4e2a\u7279\u5f81feature)\uff0c\u770b\u5b98\u65b9\u4ecb\u7ecd<br \/>\n<a href=\"http:\/\/www.mathworks.cn\/cn\/help\/stats\/fitgmdist.html#namevaluepairarguments\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.mathworks.cn\/cn\/help\/stats\/fitgmdist.html#namevaluepairarguments<\/a><br \/>\n<span style=\"color: #3c3c3c;\">GMModel = fitgmdist(X,k)<\/span><br \/>\n\u53c2\u6570k\u662f\u9ad8\u65af\u5206\u91cfGM Component\u7684\u4e2a\u6570\uff0c\u8fd9\u4e2a\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u7684~<br \/>\n\u53ef\u4ee5\u9644\u5e26\u5404\u79cd\u53c2\u6570\u7684\uff0c\u5982\u679c\u8bad\u7ec3\u4e2d\u8fed\u4ee3\u5230\u7b2cxxx\u6b65\u51fa\u9519\u7684\u8bdd\uff0c\u5e94\u8be5\u662f\u4e00\u4e2asingular(\u5947\u70b9?)\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u5728\u6982\u7387\u5206\u5e03\u51fd\u6570\u4e2d\u6709\u4e2asigma\u503c\u662f\u505a\u5206\u6bcd\u7684\u3002\u8c8c\u4f3c\u5982\u679c\u4f60\u7684\u89c2\u6d4b\u503c\u91cc\u6709\u4e2a\u548cmu\u7684\u503c\u5f88\u50cf\u7684\u8bdd\uff0csigma\u7b97\u51fa\u6765\u5f88\u63a5\u8fd10\uff0c0\u5206\u6bcd\u662f0\u4e86\u5c31\u4f1a\u9020\u6210\u5404\u79cd\u95ee\u9898\u3002<br \/>\n\u56e0\u4e3a\u662f\u82b1\u534a\u4e2a\u5c0f\u65f6\u770b\u7684\u8fd9\u4e2a\u4e1c\u897f\uff0c\u6240\u4ee5\u6ca1\u600e\u4e48\u5b66\u4f1a\u5c31\u5728\u7528\u4e86\uff0c\u8fd9\u6b21\u62ffGMM\u662f\u505a\u5bf9\u7167\u5b9e\u9a8c\u7684\u6240\u4ee5\u5f04\u5f97\u4e0d\u591f\u6df1\u5165\uff0c\u5f3a\u70c8\u63a8\u8350\u770b\u8fd9\u4e2a\uff1a<br \/>\n<a href=\"http:\/\/freemind.pluskid.org\/machine-learning\/regularized-gaussian-covariance-estimation\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/freemind.pluskid.org\/machine-learning\/regularized-gaussian-covariance-estimation\/<\/a><br \/>\n\u5982\u679c\u78b0\u5230Singular\u95ee\u9898\uff0c\u53ef\u4ee5\u8003\u8651\u4fee\u6539\u51e0\u4e2a\u53c2\u6570\uff0c\u5982SharedCov\uff0cRegularize\u6765\u89c4\u907f\uff0c\u4e0d\u8fc7\u5176\u6027\u80fd\u53ef\u80fd\u4f1a\u53d7\u5230\u4e0d\u540c\u7a0b\u5ea6\u5f71\u54cd\uff08\u6709\u597d\u6709\u574f\uff09\u3002<\/p>\n<h1>2.pdf<\/h1>\n<p>\u62ff\u6d4b\u8bd5\u4f8b\u53bb\u6d4b\u8bd5\u8bad\u7ec3\u597d\u7684GMM\u6a21\u578b\u7528\u5230\u8fd9\u4e2a\u51fd\u6570\u3002\u9ad8\u65af\u6df7\u5408\u6a21\u578b\u6210\u578b\u540e\u662f\u6709\u4e2a\u6982\u7387\u5206\u5e03\u7684\uff0c\u6309\u7167\u5176\u7406\u5ff5\uff0c\u5bf9\u964c\u751f\u7684\u6d4b\u8bd5\u4f8b\u4f7f\u7528\u8fd9\u4e2a\u6982\u7387\u5206\u5e03\u51fd\u6570\u5c31\u80fd\u7b97\u51fa\u7c7b\u4f3c\u201c\u652f\u6301\u5ea6\u201d\u7684\u4e1c\u897f\u5566~<br \/>\n\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662f\uff0c\u6bcf\u4e2a\u5206\u7c7b\u8bad\u7ec3\u4e00\u4e2aGMM\uff0c\u7136\u540e\u6d4b\u8bd5\u65f6\u7b97\u51fa\u5404\u79cd\u5206\u7c7b\u7684\u652f\u6301\u5ea6\uff0c\u5177\u4f53\u600e\u4e48\u51b3\u7b56\u5c31\u662f\u53e6\u5916\u4e00\u56de\u4e8b\u4e86\uff0c\u5149\u51b3\u7b56\u8fd8\u6709\u7b97\u6cd5\u7684\u8bf4~\u6700\u7b80\u5355\u7684\u5c31\u662f\u6311\u652f\u6301\u5ea6\u6700\u5927\u7684\u5206\u7c7b\u4f5c\u4e3a\u7ed3\u679c\u3002<br \/>\n\u53ef\u4ee5\u53c2\u8003\u8fd9\u4e2a\uff1a<br \/>\n<a href=\"http:\/\/www.mathworks.com\/matlabcentral\/newsreader\/view_thread\/168336\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/www.mathworks.com\/matlabcentral\/newsreader\/view_thread\/168336<\/a><br \/>\n\u7528\u6cd5\u5c31\u662f<br \/>\npdf(obj, X)<br \/>\nobj\u5c31\u662f\u4e4b\u524d\u7b97\u51fa\u7684\u90a3\u4e2aGMM\u5566~X\u662f\u6d4b\u8bd5\u4f8b\uff0c\u652f\u6301\u5411\u91cf\u6216\u8005\u591a\u4e2a\u89c2\u6d4b\u503c\u7684\u77e9\u9635\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Matlab\u771f\u662f\u7528\u6765\u6d4b\u8bd5\u7b97\u6cd5\u7684\u597d\u4e1c\u897f\u554a~\u4e00\u4e9b\u5f88\u57fa\u7840\u7684\u4e1c\u897f\u90fd\u63d0\u4f9b\u4e86~ \u6211\u662f\u5728R2014a\u4e2d\u4f7f\u7528\u7684\uff0c\u53ef\u80fd\u662f\u8981\u88c5\u7edf\u8ba1\u5b66\u6a21\u578b\u7684\u4ec0\u4e48\u63d2\u4ef6\uff0c\u4e0d\u8fc7\u6211\u4e4b\u524d\u5b89\u88c5\u7684\u65f6\u5019\u628a\u5404\u79cd\u63d2\u4ef6\u90fd\u9009\u4e86\uff0c\u6240\u4ee5\u6ca1\u5565\u95ee\u9898\u5566~ \u4e3b\u8981\u51fd\u6570\u6709\u8fd9\u4e48\u51e0\u4e2a\uff1a 1.fitgmdist \u8fd9\u4e2a\u662f\u7528\u6765\u62df\u5408GMM\u6a21\u578b\u7684\uff0c\u5176\u4e2dX\u662f\u8bad\u7ec3\u96c6\u6570\u636e(\u4e00\u884c\u662f\u4e00\u4e2a\u89c2\u6d4b\u503cobservation\uff0c\u6bcf\u5217\u4e00\u4e2a\u7279\u5f81feature)\uff0c\u770b\u5b98\u65b9\u4ecb\u7ecd http:\/\/www.mathworks.cn\/cn\/help\/stats\/fitgmdist.html#namevaluepairarguments GMModel = fitgmdist(X,k) \u53c2\u6570k\u662f\u9ad8\u65af\u5206\u91cfGM Component\u7684\u4e2a\u6570\uff0c\u8fd9\u4e2a\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8c03\u6574\u7684~ \u53ef\u4ee5\u9644\u5e26\u5404\u79cd\u53c2\u6570\u7684\uff0c\u5982\u679c\u8bad\u7ec3\u4e2d\u8fed\u4ee3\u5230\u7b2cxxx\u6b65\u51fa\u9519\u7684\u8bdd\uff0c\u5e94\u8be5\u662f\u4e00\u4e2asingular(\u5947\u70b9?)\u7684\u95ee\u9898\uff0c\u56e0\u4e3a\u5728\u6982\u7387\u5206\u5e03\u51fd\u6570\u4e2d\u6709\u4e2asigma\u503c\u662f\u505a\u5206\u6bcd\u7684\u3002\u8c8c\u4f3c\u5982\u679c\u4f60\u7684\u89c2\u6d4b\u503c\u91cc\u6709\u4e2a\u548cmu\u7684\u503c\u5f88\u50cf\u7684\u8bdd\uff0csigma\u7b97\u51fa\u6765\u5f88\u63a5\u8fd10\uff0c0\u5206\u6bcd\u662f0\u4e86\u5c31\u4f1a\u9020\u6210\u5404\u79cd\u95ee\u9898\u3002 \u56e0\u4e3a\u662f\u82b1\u534a\u4e2a\u5c0f\u65f6\u770b\u7684\u8fd9\u4e2a\u4e1c\u897f\uff0c\u6240\u4ee5\u6ca1\u600e\u4e48\u5b66\u4f1a\u5c31\u5728\u7528\u4e86\uff0c\u8fd9\u6b21\u62ffGMM\u662f\u505a\u5bf9\u7167\u5b9e\u9a8c\u7684\u6240\u4ee5\u5f04\u5f97\u4e0d\u591f\u6df1\u5165\uff0c\u5f3a\u70c8\u63a8\u8350\u770b\u8fd9\u4e2a\uff1a http:\/\/freemind.pluskid.org\/machine-learning\/regularized-gaussian-covariance-estimation\/ \u5982\u679c\u78b0\u5230Singular\u95ee\u9898\uff0c\u53ef\u4ee5\u8003\u8651\u4fee\u6539\u51e0\u4e2a\u53c2\u6570\uff0c\u5982SharedCov\uff0cRegularize\u6765\u89c4\u907f\uff0c\u4e0d\u8fc7\u5176\u6027\u80fd\u53ef\u80fd\u4f1a\u53d7\u5230\u4e0d\u540c\u7a0b\u5ea6\u5f71\u54cd\uff08\u6709\u597d\u6709\u574f\uff09\u3002 2.pdf \u62ff\u6d4b\u8bd5\u4f8b\u53bb\u6d4b\u8bd5\u8bad\u7ec3\u597d\u7684GMM\u6a21\u578b\u7528\u5230\u8fd9\u4e2a\u51fd\u6570\u3002\u9ad8\u65af\u6df7\u5408\u6a21\u578b\u6210\u578b\u540e\u662f\u6709\u4e2a\u6982\u7387\u5206\u5e03\u7684\uff0c\u6309\u7167\u5176\u7406\u5ff5\uff0c\u5bf9\u964c\u751f\u7684\u6d4b\u8bd5\u4f8b\u4f7f\u7528\u8fd9\u4e2a\u6982\u7387\u5206\u5e03\u51fd\u6570\u5c31\u80fd\u7b97\u51fa\u7c7b\u4f3c\u201c\u652f\u6301\u5ea6\u201d\u7684\u4e1c\u897f\u5566~ \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662f\uff0c\u6bcf\u4e2a\u5206\u7c7b\u8bad\u7ec3\u4e00\u4e2aGMM\uff0c\u7136\u540e\u6d4b\u8bd5\u65f6\u7b97\u51fa\u5404\u79cd\u5206\u7c7b\u7684\u652f\u6301\u5ea6\uff0c\u5177\u4f53\u600e\u4e48\u51b3\u7b56\u5c31\u662f\u53e6\u5916\u4e00\u56de\u4e8b\u4e86\uff0c\u5149\u51b3\u7b56\u8fd8\u6709\u7b97\u6cd5\u7684\u8bf4~\u6700\u7b80\u5355\u7684\u5c31\u662f\u6311\u652f\u6301\u5ea6\u6700\u5927\u7684\u5206\u7c7b\u4f5c\u4e3a\u7ed3\u679c\u3002 \u53ef\u4ee5\u53c2\u8003\u8fd9\u4e2a\uff1a http:\/\/www.mathworks.com\/matlabcentral\/newsreader\/view_thread\/168336 \u7528\u6cd5\u5c31\u662f pdf(obj, X) obj\u5c31\u662f\u4e4b\u524d\u7b97\u51fa\u7684\u90a3\u4e2aGMM\u5566~X\u662f\u6d4b\u8bd5\u4f8b\uff0c\u652f\u6301\u5411\u91cf\u6216\u8005\u591a\u4e2a\u89c2\u6d4b\u503c\u7684\u77e9\u9635\u7684\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[48,72],"class_list":["post-1219","post","type-post","status-publish","format-standard","hentry","category-study","tag-gmm","tag-matlab"],"_links":{"self":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/posts\/1219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1219"}],"version-history":[{"count":0,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=\/wp\/v2\/posts\/1219\/revisions"}],"wp:attachment":[{"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dayandcarrot.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}