logistic regression
logistic regression turns the distance from a line into a probability. bigger squares in the field mean it is surer of a circle. each step of gradient descent moves the line and its confidence to lower the cross-entropy loss.
try this
- train on separable. the band of doubt keeps narrowing. under more, add an l2 penalty and train again to stop it.
- train on xor. the loss stays at 0.693, which is ln 2: a coin flip everywhere.
- on overlap, set the learning rate under more to 64. the steps overshoot and the loss jumps around.