Machine learning
The cross-entropy derivative, one logit at a time
Derive softmax cross-entropy with respect to logits, check p − y with a three-class example, and see what changes with soft labels, weights, and batch means.
Read articleLearn the math behind machine learning.
The Glacius Blog
Worked explanations of the mathematics behind machine learning, with diagrams and calculations you can follow.
Follow via RSSMachine learning
Derive softmax cross-entropy with respect to logits, check p − y with a three-class example, and see what changes with soft labels, weights, and batch means.
Read articleMore to explore
6 articlesMachine learning
Clip the same gradient two ways, see why their lengths differ, and check global clipping, PyTorch code, and the limits of what clipping can fix.
Read articleMachine learning
Compare min–max scaling and z-scores on one small column. See why skew survives, how outliers change both methods, and why test values can exceed 1.
Read articleMachine learning
Follow the same two coefficients through ridge and lasso, derive the zero threshold, and see why correlated features complicate feature selection.
Read articleMachine learning
Work through backpropagation and a gradient descent update in matrix notation, with predictions, numerical gradients, dimension checks, and NumPy code.
Read articleMachine learning
Why gradient descent oscillates: a visual, worked example showing convergence, overshooting, and divergence as the learning rate changes.
Read article