A Linear Autoencoder Learns PCA

hard
Unit 23 · Rnns0/0 to milestone

A linear autoencoder with a kk-dimensional bottleneck, trained on squared reconstruction error, learns the same subspace as PCA.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
A Linear Autoencoder Learns PCA · TechGradify