PCA Dimensionality Reduction

medium

Task

Use PCA to reduce the digits dataset from 64 dimensions to 2 and visualize explained variance.

Why It Matters

High-dimensional data is hard to visualize and can cause overfitting. PCA finds the most informative directions in your data, letting you reduce dimensions while retaining most of the variance. It's also great for visualization and denoising.

Instructions

  1. Examine the setup code and data
  2. Modify the code to solve the puzzle
  3. Click Run or press Ctrl+Enter to execute

Command Palette

Search for a command to run...