필터 지우기
필터 지우기

How to find optimal k from k means clustering by using elbow method

조회 수: 84 (최근 30일)
Pradya Panyainkaew
Pradya Panyainkaew 2018년 1월 8일
편집: KSSV 2021년 2월 11일
I want to find optimal k from k means clustering by using elbow method . I have 100 customers and each customer contain 8689 data sets. How can I create a program to cluster this data set into appropriate k groups.

채택된 답변

kira
kira 2019년 5월 2일
old question, but I just found a way myself looking at matlab documentation:
klist=2:n;%the number of clusters you want to try
myfunc = @(X,K)(kmeans(X, K));
eva = evalclusters(net.IW{1},myfunc,'CalinskiHarabasz','klist',klist)
classes=kmeans(net.IW{1},eva.OptimalK);

추가 답변 (1개)

Saranya  A
Saranya A 2018년 3월 8일
편집: KSSV 2021년 2월 11일
This function will help you to find the optimum number of clusters. https://in.mathworks.com/matlabcentral/fileexchange/49489-best-kmeans-x-

카테고리

Help CenterFile Exchange에서 Cluster Analysis and Anomaly Detection에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by