필터 지우기
필터 지우기

kddcup99 kmeans clustering error

조회 수: 1 (최근 30일)
seyed morteza mousavi
seyed morteza mousavi 2017년 11월 10일
편집: Walter Roberson 2017년 11월 10일
I am using idx = kmeans(kddcup,5); for kmeans clustering. 145586 records with 41 features of kddcup99, 10% subset of database into 5 clusters, but MATLAB r2017a gives this error:
Kmeans cannot accept complex data!
I loaded a database in MATLAB that is a table and has 42 columns instead of 41, which means that the 42nd column is for type of row (attack, normal, ...) and is not a feature, and I don't know if I should keep that 42nd row or delete it.
I don't know if my work is correct or if there is a mistake in that code. for example one row of this database is like that
0 /tcp/http/SF /181 /5450/0/0 /0/0/0/1/0 /0/0/0/0/0 /0/0/0/0/8 /8/0.00/0.00/0.00/0.00 /1.00/0.00/0.00/9/9/1.00/0.00/0.11/0.00/0.00/0.00/0.00/0.00/normal
in my base article for study, the database records after kmeans clustering reduce from 145586 to 116266, so i want this happend to me, i want just do that.
please help please help meeeeeee

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by