Performance evaluation for kmedoids clustering?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, how can i evaluate performance of kmedoids clustering because the available function evalclusters such as silhouette, gap and etc only accept kmeans, linkage and gmdistribution as valid value for clust argument. Anyone can share any file exchange for kmedoids clustering evaluation? Thank you
0 comentarios
Respuestas (1)
Mann Baidi
el 10 de Abr. de 2024
As per the understanding of the question you would like to evaluate the performance of the kmedoids clustering algorithm for different cluster numbers in MATLAB.
I would like to inform you that you can use the 'evalclusters' for evaluting the kmedoids clustering algorithm also. You can evaulate custom clustering algorithm using the 'evalclusters' function.
You can take the help of the following code example for evaluating your data:
% Generate some sample data
clear;
data = 100*rand(1000, 2)+ 10*rand(1,1)+ 2*rand(1,1); % 100 samples, 2 features
% Set the number of clusters (K)
K = 10;
cluster_label = zeros(size(data,1),K);
for i=1:K
cluster_label(:,i) = kmedoids(data, i);
end
eva = evalclusters(data,cluster_label,'DaviesBouldin')
plot(eva)
For exploring more about evaluating the cluster solution using the 'evalclusters', you can refer to the example mentioned in the following link:
I hope this will help in resolving your issue!
0 comentarios
Ver también
Categorías
Más información sobre Cluster Visualization and Evaluation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!