Spectral clustering: K-means replicates setting to improve reliability

3 ビュー (過去 30 日間)
Gustavo Lunardon
Gustavo Lunardon 2023 年 3 月 10 日
コメント済み: Gustavo Lunardon 2023 年 3 月 11 日
Hello,
The command spectralcluster in matlab can use k-means as part of its algortihm (and is the default in the options ClusterMethod — Clustering method). In the documentation for k-means there is a way to pass 'Replicates' as an option to the algorithm to avoid problems arising from a bad centroid initialization. Any way to pass this replicates option to spectral clustering so it is not only reproduceable but also more reliable? It would be way better than just specifying the rng seed but I cannot figure out the correct syntax. Should it be done with an options struct?
Thanks in advance!

採用された回答

Adam Danz
Adam Danz 2023 年 3 月 10 日
編集済み: Adam Danz 2023 年 3 月 10 日
If you open spectralcluster, you'll see that kmeans is being called with a Replicates value of 5 and there is not a way to specify a different replicates value in spectralcluster. Kmeans selects a random starting point which can be controlled by the Options>Streams option in kmeans() but this cannot be specified as inputs to spectralcluster.
Note the examples in the spectralcluster doc page uses rng() to control reproducibility.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by