Clustering, Segmentation, Data Science, Remote Sensing, Satellite.
distance(data.copy(), new_centroids, kind) old_centroids = new_centroids.copy() new_centroids = np.array([data[data.Class == Class][['R', 'G', 'B']].mean().values for Class in data.loc[:,'C1':f'C{K}'].columns]) i = 1 print(f'Iteration: {i}\tDistance: