Performance evaluation for kmedoids clustering?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Mann Baidi
le 10 Avr 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 commentaires
Voir également
Catégories
En savoir plus sur Cluster Visualization and Evaluation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!