is there any function for CalinskiHarabasz just like silhouette(X,cidx) in matlab

3 ビュー (過去 30 日間)
Kshitij Tripathi
Kshitij Tripathi 2021 年 6 月 19 日
回答済み: LO 2021 年 6 月 19 日
As silhouette(X,cidx) function plot graph of score for each data point. I want to know that is there similar function
for CalinskiHarabasz in matlab.

回答 (1 件)

LO
LO 2021 年 6 月 19 日
yes, here
load fisheriris;
eva = evalclusters(meas,'kmeans','CalinskiHarabasz','KList',[1:6])
this is the usual silouhette plot used for k-means clustering:
load('kmeansdata.mat')
[idx3,C,sumdist3] = kmeans(X,3,'Distance','cityblock','Display','final');
[silh3,h] = silhouette(X,idx3,'cityblock');
xlabel('Silhouette Value')
ylabel('Cluster')

カテゴリ

Help Center および File ExchangeBar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by