what is basically centres matrix shows here
What is basically centres matrix shows here
Hey @hssharma2212000 ,
You might know that , KMeans is an unsupervised machine learning algorithm which divides data into n clusters , the same thing is done here too.
In the Image provided , we are making 4 clusters , which is easily done using Kmeans algorithm. So each pixel will alotted to a cluster . So if there is cluster made as such, then we would also be having some point at the center of the cluster.
Hence as we are make 4 clusters in image , therefore we will also be having 4 such centers.
A matrix of these 4 centers is basically what the centers matrix represent.
As each center point is nothing much but just a pixel with a color in 3 dimensions ,hence the shape of this matrix will be
(4, dimesion of 1 pixel) -> (4,3)
I hope this would have resolved your doubt.
Happy Learning
.