Borrar filtros
Borrar filtros

Explain the below Kmeans code.

2 visualizaciones (últimos 30 días)
Sunil
Sunil el 19 de Abr. de 2014
Editada: Sunil el 19 de Abr. de 2014
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?

Respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by