PCA via SVD

medium
Unit 14 · Metrics & Preprocessing0/2 to milestone

Principal Component Analysis finds the directions of greatest variance in your data. The numerically robust way to compute it is the singular value decomposition of the centred data.

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
PCA via SVD · TechGradify