1 year ago
#238086
mr yu
Does the SOM clustering algorithm have cluster centers? If there is how to use matlab's SOMtoolbox package to calculate this cluster center
Does the SOM clustering algorithm have cluster centers? If there is how to use matlab's SOMtoolbox package to calculate this cluster center.
I observed that the kmeans_clusters clustering function in the somtoolbox package can return the cluster centers. The code is as follows:
function [centers,clusters,errors,ind] = kmeans_clusters(sD, n_max, c_max, verbose)
where 'centers' are the cluster centers
I tried the following code, may I ask if the 'sM.codebook' here is the cluster center?
clusterNum = 99;
sD = som_data_struct(data);%首先可以判定能出图,所以这个不用转置
sM = som_make(sD, 'msize', [clusterNum],'training', 'long');
centroids = sM.codebook;
save('centroids.mat','centroids','-v7.3');
Bmus = som_bmus(sM,sD);
matlab
cluster-computing
k-means
som
0 Answers
Your Answer