Viewing a single comment thread. View all comments

PredictorX1 t1_jadudqt wrote

The result of k-means clustering is a set of cluster centers. Usually, I would think "running" it over new data would mean assigning each observation in the new set to one of those clusters. I'm not sure what the rest of your question is getting at.

1

_throw_hawaii OP t1_jae20rx wrote

Yes, exactly. The maximum number of iterations is a parameter that can be usually set in some functions(in programming languages). So I was told when I had to implement the model with k-means on new data to set that number to zero

1

Donno_Nemore t1_jaeq7oy wrote

This sounds like you are being asked to assign the new data to a cluster. Assignment is as simple as calling the distance function for each pair of point and centroid. The minimum score is the cluster assignment.

1