Cluster Analysis in Python
Shaumik Daityari
Business Analyst
Initialize a random seed
from numpy import random
random.seed(12)
Seed: np.array(1000, 2000)
Cluster sizes: 29, 29, 43, 47, 52
Seed: np.array(1,2,3)
Cluster sizes: 26, 31, 40, 50, 53
Seed: np.array(1000, 2000)
Seed: np.array(1,2,3)
K-means clustering with 3 clusters
Hierarchical clustering with 3 clusters
Cluster Analysis in Python