1. Learn
  2. /
  3. Courses
  4. /
  5. Cluster Analysis in Python

Connected

Exercise

Impact of seeds on distinct clusters

You noticed the impact of seeds on a dataset that did not have well-defined groups of clusters. In this exercise, you will explore whether seeds impact the clusters in the Comic Con data, where the clusters are well-defined.

The data is stored in a pandas DataFrame, comic_con. x_scaled and y_scaled are the column names of the standardized X and Y coordinates of people at a given point in time.

Instructions 1/2

undefined XP
  • 1

    Import the random class from numpy and initialize the seed with the integer 0.

  • 2

    Change your code from the earlier step so that the seed is initialized with a list [1, 2, 1000].