Apex › Storage & databases

From a hard line to a probability (logistic regression)

The probabilistic upgrade of the perceptron: the linear score w·x + b squashed through the sigmoid into a probability, trained by gradient descent on the convex cross-entropy loss (one bowl → the global minimum from any start). But it stays LINEAR — produce the wall: on two blobs a line separates them (~91% accuracy), but switch to XOR (a checkerboard) and no line works, so the loss still converges yet accuracy sticks at ~50%, pure chance. Then add one nonlinear feature (x−½)(y−½) and the boundary bends → ~99%, exactly what a hidden layer does. It’s the output unit of a classifier net (softmax = multiclass).

More in Storage & databases