0
0
ML Pythonml~20 mins

Why advanced clustering finds complex structures in ML Python - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Advanced Clustering Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why does DBSCAN find clusters of arbitrary shape?

DBSCAN is an advanced clustering algorithm. Why can it find clusters with complex shapes?

ABecause it groups points based on density, not distance to a center
BBecause it uses the mean of points to define cluster centers
CBecause it requires the number of clusters as input
DBecause it only works on spherical clusters
Attempts:
2 left
💡 Hint

Think about how DBSCAN decides which points belong together.

Predict Output
intermediate
2:00remaining
Output of spectral clustering on a two-moon dataset

What is the shape of the clusters found by spectral clustering on a two-moon shaped dataset?

ML Python
from sklearn.datasets import make_moons
from sklearn.cluster import SpectralClustering
import numpy as np

X, _ = make_moons(n_samples=200, noise=0.05)
model = SpectralClustering(n_clusters=2, affinity='nearest_neighbors', assign_labels='kmeans')
labels = model.fit_predict(X)
unique_labels = np.unique(labels)
len(unique_labels)
A0
B2
C3
D1
Attempts:
2 left
💡 Hint

How many clusters does the model try to find?

Model Choice
advanced
2:00remaining
Best clustering model for non-convex clusters

You have data with clusters shaped like spirals. Which clustering model is best to find these complex shapes?

AGaussian Mixture Model
BK-Means clustering
CDBSCAN
DHierarchical clustering with single linkage
Attempts:
2 left
💡 Hint

Think about which method can find clusters based on density rather than shape.

Hyperparameter
advanced
2:00remaining
Effect of epsilon in DBSCAN clustering

In DBSCAN, what happens if you set the epsilon (eps) parameter too high?

AMore clusters are found with smaller sizes
BClusters become more separated and distinct
CThe algorithm runs faster but finds no clusters
DClusters merge and fewer clusters are found
Attempts:
2 left
💡 Hint

Think about how increasing the neighborhood radius affects grouping.

Metrics
expert
2:00remaining
Choosing the best metric to evaluate complex clustering

You applied an advanced clustering algorithm that finds complex-shaped clusters. Which metric best evaluates the quality of these clusters without knowing true labels?

ASilhouette score
BAccuracy
CMean squared error
DCross-entropy loss
Attempts:
2 left
💡 Hint

Consider metrics that measure cluster cohesion and separation without labels.