Error using gmdistribution for GMM
이전 댓글 표시
Hi, I am trying to create a GMM model for my dataset X which is of size 200x39. At the line gm = gmdistribution(mu, sigma, pcomponents), I am getting the following error
"Error using checkdata (line 18) X must be a matrix with 39 columns.
Error in gmdistribution/pdf (line 16) checkdata(X,obj);"
Size of mu -> 32x39, sigma -> 39x39x32, pcomponents -> 1x32
My X is infact having 39 columns. So I am not able to understand what exactly is causing the error. Any hint would be of great help. Thanks in advance.
답변 (1개)
KSSV
2016년 12월 15일
0 개 추천
Check the sizes of mu, sigma,pcomponents you are entering into the function?
For your data of 200x39, sigma should be 39x39 or 1X39 and pcomponents should 1x200.
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!