Facial Recognition with Eigenfaces
About this episode
A true classic topic in ML: Facial recognition is very high-dimensional, meaning that each picture can have millions of pixels, each of which can be a single feature. It's computationally expensive to deal with all these features, and invites overfitting problems. PCA (principal components analysis) is a classic dimensionality reduction tool that compresses these many dimensions into the few that contain the most variation in the data, and those principal components are often then fed into a classic ML algorithm like and SVM.
One of the best thing about eigenfaces is the great example code that you can find in sklearn--you can distinguish pictures of world leaders yourself in just a few minutes!
http://scikit-learn.org/stable/auto_examples/applications/face_recognition.html
More from Linear Digressions
Decision models like Jev are carving out a distinct niche from your standard LLMs — and the difference comes down to something more fundamental than just architecture. Where a language model's instinc…
Mixture of Experts is one of the cleverest tricks in modern inference, and it makes models smaller without actually making them smaller. This week we unpack how MoE models like DeepSeek V3 (671 billio…
Staying relevant as a data scientist when AI is reshaping the field isn't just a career question — it's an existential one. Dr. Jon Krohn, neuroscientist-turned-data-science-educator, podcaster, and c…
GPUs are the engines powering every AI conversation you've ever had — but what's actually happening inside those chips when an LLM generates a response? Understanding GPU fundamentals turns out to be…
The unsung hero of every LLM conversation you've ever had? A clever optimization called the KV cache. Self-attention is computationally brutal — every token attending to every other token means costs…