Challenge - 5 Problems
Unsupervised Learning Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why does unsupervised learning find hidden patterns?
Unsupervised learning algorithms analyze data without labeled answers. Why can they find hidden patterns in data?
Attempts:
2 left
❓ Predict Output
intermediate2:00remaining
Output of K-means clustering on simple data
What is the output cluster assignment for the points after running K-means with 2 clusters?
ML Python
from sklearn.cluster import KMeans import numpy as np points = np.array([[1, 2], [1, 4], [1, 0], [10, 2], [10, 4], [10, 0]]) kmeans = KMeans(n_clusters=2, random_state=0).fit(points) labels = kmeans.labels_ print(labels.tolist())
Attempts:
2 left
❓ Model Choice
advanced2:00remaining
Best unsupervised model for dimensionality reduction
You want to reduce the number of features in your dataset while preserving important information. Which unsupervised model is best suited for this?
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Evaluating clustering quality without labels
Which metric can be used to evaluate the quality of clusters found by an unsupervised algorithm when no true labels are available?
Attempts:
2 left
🔧 Debug
expert2:00remaining
Why does this PCA code raise an error?
What error does the following PCA code raise and why?
ML Python
from sklearn.decomposition import PCA import numpy as np X = np.array([[1, 2], [3, 4], [5, 6]]) pca = PCA(n_components=4) pca.fit(X)
Attempts:
2 left