kddcup99 kmeans clustering error
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!