Is there a 'value range' of INITIAL CENTROIDS for kmeans and kmeans ++?

1 visualización (últimos 30 días)
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??

Respuesta aceptada

the cyclist
the cyclist el 25 de Sept. de 2019
Editada: the cyclist el 25 de Sept. de 2019
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.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by