← 🧠 Machine Learning

📉 Loss Landscape

Add outlier point
Loss:
Weights:
Step: 0
FPS:
Drag — rotate · Scroll — zoom

📉 Loss Function Hyperparameters Guide

A live 3D loss landscape for a tiny linear model, where a marble performs gradient descent while you switch between MSE, MAE and Huber loss and tune the hyperparameters that shape each one.

🔬 What It Demonstrates

The surface height at each point is the loss for those weights. Switching loss function reshapes the bowl live; adding an outlier shows why MSE distorts badly while MAE and Huber stay comparatively stable.

🎮 How to Use

Pick a loss function, tune the learning rate, Huber delta and L2 regularization, then toggle the outlier point and watch the marble's descent path change on the reshaped surface.

💡 Did You Know?

Huber loss's δ hyperparameter directly controls the trade-off between MSE's smooth convergence and MAE's outlier robustness — a single knob blending two loss families.