Filter löschen
Filter löschen

kddcup99 kmeans clustering error

1 Ansicht (letzte 30 Tage)
seyed morteza mousavi
seyed morteza mousavi am 10 Nov. 2017
Bearbeitet: Walter Roberson am 10 Nov. 2017
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

Antworten (0)

Kategorien

Mehr zu Statistics and Machine Learning Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by