PCA
Data
Data
Dataset
Auto MPG
Iris
Palmer Penguins
Diabetes
Linear
Quadratic
Linear with outliers
Load CSV
Feature 1
mpg
cylinders
displacement
horsepower
weight
acceleration
model_year
Feature 2
mpg
cylinders
displacement
horsepower
weight
acceleration
model_year
Standardize features
Source
Observable notebook
· R. Quinlan · UCI · CC BY 4.0
Model
Model
PCA fits a line by angle and offset.
Optimization
Optimization
Optimizer
Gradient descent
Momentum
Nesterov
Adagrad
RMSprop
Adam
BFGS
Newton
Learning rate
Start angle (°)
Start offset
View
View
Landscape
Surface
2D
3D
Color scale
log(1 + loss)
Loss
Contours
Zoom
Plot settings…
Data plot
Residual lines
Density contours
Loss over (angle, offset)
log(1 + loss)
Fit
Loading...
Offset: -4 … 4
Angle (°): -180.0° … 180.0°
horsepower · mpg
0 observations
Angle 57.30° · Offset 0.000
−1
0
1
2
−3
−2
−1
0
1
2
3
Gray: starting fit · Rose: current fit · Point color: loss
Run
Animation speed
Smooth
Instant
steps/s
Step
0
Reconstruction MSE
—