In a K-means clustering algorithm, if you have 5 clusters and 100 data points, h

Practice Questions

Q1
In a K-means clustering algorithm, if you have 5 clusters and 100 data points, how many centroids will be initialized?
  1. 5
  2. 100
  3. 50
  4. 10

Questions & Step-by-Step Solutions

In a K-means clustering algorithm, if you have 5 clusters and 100 data points, how many centroids will be initialized?
Correct Answer: 5
  • Step 1: Understand what K-means clustering is. It is a method used to group data points into clusters.
  • Step 2: Identify how many clusters you want to create. In this case, it is 5 clusters.
  • Step 3: Know that in K-means, each cluster has a center point called a centroid.
  • Step 4: Realize that the number of centroids is the same as the number of clusters.
  • Step 5: Since there are 5 clusters, you will initialize 5 centroids.
No concepts available.
Soulshift Feedback ×

On a scale of 0–10, how likely are you to recommend The Soulshift Academy?

Not likely Very likely