Introduction - If you have any usage issues, please Google them yourself
Clustering algorithm, not a classification algorithm. Classification algorithm is to give a figure, and then determine the data belonging to a specific class of good which category. Clustering algorithm is to give a lot of raw data, and then through the algorithm which has similar characteristics data together as a class. Here k-means clustering, is given in advance the number of classes contained in the raw data, then the data contain similar characteristics together as a class. All information presented in or Andrew Ng understand. Firstly, raw data {x1, x2, ..., xn}, the data is not labeled. K random initialization data u1, u2, ..., uk. These are the vectors xn and uk. According to the following two formulas can be obtained final iteration all u, u is the ultimate all these classes the center position.