Skip to content
Concept-Lab
← Back to Machine Learning

Unsupervised, Recommenders & Reinforcement

Clustering and anomaly detection foundations from the URRL sequence, with deep notes and interactive labs.

0 / 13 completed0%
13 remainingShowing 13 of 13 nodes

Concepts Covered

Unsupervised, Recommenders & Reinforcement

0/13 done
1

Welcome

Course map: unsupervised learning first, recommender systems next, reinforcement learning after that.

Theory
2

What Is Clustering?

Clustering finds structure in unlabeled data by grouping similar points together.

Lab
3

K-Means Intuition

K-means alternates between assigning points to nearest centroids and moving centroids to cluster means.

Lab
4

K-Means Algorithm

Formal K-means procedure with assignment equations, centroid updates, and empty-cluster handling.

Lab
5

Optimization Objective

K-means minimizes distortion: average squared distance from each point to its assigned centroid.

Lab
6

Initializing K-Means

Initialization quality strongly affects final clustering; multi-start runs improve robustness.

Lab
7

Choosing the Number of Clusters

Choosing K is often ambiguous; combine elbow hints with downstream business tradeoffs.

Lab
8

Finding Unusual Events

Anomaly detection learns normal behavior and flags low-probability events for inspection.

Lab
9

Gaussian (Normal) Distribution

Gaussian distributions model feature likelihood via mean and variance, forming the basis of simple anomaly scoring.

Lab
10

Anomaly Detection Algorithm

Fit one Gaussian per feature, multiply densities into p(x), then classify with epsilon threshold.

Lab
11

Developing and Evaluating an Anomaly Detection System

Use cross-validation anomalies to tune epsilon and features; evaluate with skew-aware metrics like precision, recall, and F1.

Lab
12

Anomaly Detection vs Supervised Learning

Pick anomaly detection for rare and evolving positives; pick supervised learning when positives are sufficiently labeled and stable.

Lab
13

Choosing What Features to Use

Feature shaping and engineering are critical in anomaly detection; transform skewed variables and iterate via error analysis.

Lab