필터 지우기
필터 지우기

help with kmeans clustering

조회 수: 1 (최근 30일)
Abdelmalek Benaimeur
Abdelmalek Benaimeur 2019년 6월 6일
편집: Abdelmalek Benaimeur 2019년 6월 11일
hello I'm working on k-means clustering algorithms I'm using the default function of matlab
when i read the documentation i found that the distance hamming used only with binary dataset
so i tried this :
B=randi([2:3],[150,7])>2;
>> idx=kmeans(B,4,'Distance','hamming');
it's so clear that B is binary but when i click on run button i obtain this error
Undefined function 'kmeans2' for input arguments of type 'struct'.
Error in kmeans (line 322)
[varargout{1:nargout}] = kmeans2(X,k, distance, emptyact,reps,start,...
any ideas about where the problem is .?
  댓글 수: 11
Walter Roberson
Walter Roberson 2019년 6월 7일
dbstop if error, run, and examine the parameters being passed to the call.
Abdelmalek Benaimeur
Abdelmalek Benaimeur 2019년 6월 11일
편집: Abdelmalek Benaimeur 2019년 6월 11일
I found the solution of this problem
all what i did is that i pasted the function kmeans2 to the path where I'm working
and the problem is fixed

댓글을 달려면 로그인하십시오.

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by