Principal Component Analysis

medium· Machine Learningruns: 0

Implement PCA for dimensionality reduction. Center the data, compute the covariance matrix, find its eigenvectors, sort them by eigenvalue in descending order, and use the top k as the projection. Provide fit, transform, and fit_transform.

sign in to paste and practice your own solution
desktop only

codedrill is a typing game and needs a real keyboard. open this on a laptop or desktop to practice.

you can still browse problems and sections from your phone.