mb

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.

16 points

arrow keys move the crosshair, shift for finer steps. tap to place. keys: arrows, enter, backspace to erase

step
0/600
loss
0.693
correct
8/16

loss by step0: 0.693

solid line: p = 0.5. dashed: 0.25 and 0.75

bias 0.00w1 0.00w2 0.00

try this

  1. train on separable. the band of doubt keeps narrowing. under more, add an l2 penalty and train again to stop it.
  2. train on xor. the loss stays at 0.693, which is ln 2: a coin flip everywhere.
  3. on overlap, set the learning rate under more to 64. the steps overshoot and the loss jumps around.