Is there a 'value range' of INITIAL CENTROIDS for kmeans and kmeans ++?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
We know that the initial centroids are randomly generated for Matlab's default 'kmeans' function.
I wonder whether these initial centroids are randomly generated in a 'specific range', say in the range of [0, 1], or there is no such range and the value of initial centroids could be any number.
I also have the same question for 'kmeans ++' about the value range of the initial centroids, if there is such 'value range'.
Are negative values allowed for initial centroids??
댓글 수: 0
채택된 답변
the cyclist
2019년 9월 25일
편집: the cyclist
2019년 9월 25일
The "kmeans++" algorithm is the algorithm for choosing the initial centroids for the kmeans procedure. You can see that in the documentation here. So, I don't think you are really asking two separate questions.
The initial centroids are not chosen "from a range", nor are they "any number". The initial centroids are chosen from the input data itself. The first initial centroid is one of the data points, selected at random. After that, there is a probabilistic algorithm (based on the distance from other initial centroids) for choosing the next one.
It is all spelled out in the documentation.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!