from the ground up: linear regression We implement a simple linear regression in PyTorch, introducing a couple of abstractions while keeping the training loop easy to follow. Feb 18, 2026