We run the following code on reshaped coloured image data (img) of size (100,100,3):
from sklearn.cluster import KMeans
kmeans = KMeans(clusters = 7)
kmeans.fit(img)
centers = kmeans.cluster__centers_
centers = np.array(centers,‘uint8’)
What would be the size of the ‘centers’ array?
(100,100)
(7,10000)
(7,3)
(10000,7)