I Trained a Machine-Learning Model From Scratch in 40 Lines (No scikit-learn)
Linear regression + gradient descent, built by hand in plain JavaScript. The loop here — model, loss, gradient, step — is the seed of all of ML. Day 1 of MachineLearningFromZero.