the.ai

Foundations / Supervised

verified

Logistic Regression

The same idea as fitting a line, except the answer has to be a probability. Squash the linear score through a curve mapping any real number into zero-to-one, and train it to put high probability on the right class. This is the last layer of nearly every classifier ever built, including the one at the end of a transformer.

Viz primitive · update-spectrumpenalty = 0.1

8 values. The left group decays steeply; the right group is 10% of the way to flat, and reads flatter than the left.

Predicted class probabilities before and after a weight penalty. Drag the penalty up to watch confident predictions pull back toward uniform.

0.1

Reviewed by opendroid · 2026-08-13