Challenge - 5 Problems
K-Means Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding the K-Means Objective
What is the main goal of the K-Means clustering algorithm?
Attempts:
2 left
❓ Predict Output
intermediate2:00remaining
Output of K-Means Cluster Assignments
What is the output of the following Python code snippet using scikit-learn's KMeans?
ML Python
from sklearn.cluster import KMeans import numpy as np X = np.array([[1, 2], [1, 4], [1, 0], [10, 2], [10, 4], [10, 0]]) kmeans = KMeans(n_clusters=2, random_state=0).fit(X) print(kmeans.labels_)
Attempts:
2 left
❓ Hyperparameter
advanced2:00remaining
Choosing the Number of Clusters (k)
Which method is commonly used to decide the best number of clusters (k) in K-Means clustering?
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Evaluating K-Means Clustering Quality
Which metric measures how well-separated the clusters are in K-Means clustering?
Attempts:
2 left
🔧 Debug
expert2:00remaining
Debugging K-Means Convergence Issue
You run K-Means on a dataset but notice the algorithm does not converge and runs indefinitely. Which is the most likely cause?
Attempts:
2 left