Python, Machine Learning, Clustering, K Means, Sklearn.
dimensional data. Not efficient for higher dimensional data. Code import numpy as np import matplotlib.pyplot as plt from sklearn.cluster import KMeans np.random.seed(42) # dataset x1 = np.random.normal(0, 0.5, (50, 2)) x2 = np.random.normal(3, 0.5, (50, 2)) X = np.concatenate([x1, x2], axis=0) #