フィルターのクリア

Explain the below Kmeans code.

2 ビュー (過去 30 日間)
Sunil
Sunil 2014 年 4 月 19 日
編集済み: Sunil 2014 年 4 月 19 日
E = sparse(1:n,label,1,n,k,n); % transform label into indicator matrix
m = X*(E*spdiags(1./sum(E,1)',0,k,k)); % compute m of each cluster
[~,label] = max(bsxfun(@minus,m'*X,dot(m,m,1)'/2),[],1); % assign samples to the
Can you please explain the above code?

回答 (0 件)

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by