Good evening. I am doing k means clustering problem by taking iris data set. At the time of normalization i am eliminating the last column i.e my class level. After doing normalization can i add the 5th column value from the original data set again to the normalized data set.

 採用された回答

dpb
dpb 2014 年 5 月 16 日

1 投票

Don't need to "eliminate" anything, just select the column(s) wanted as input arguments.
For an array X of 5 (say) columns of which only want to use first four,
idx=kmeans(X(:,1:4)); % cluster over first four columns

その他の回答 (0 件)

質問済み:

2014 年 5 月 16 日

回答済み:

dpb
2014 年 5 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by