Unexpected Behavior in LogisticClassifier MLJLinearModels

It does actually look like a sigmoid, if you plot it on a wider range of input values.
The default regularization constant of the LogisticClassifier is pretty large.
If you change it to smaller values, e.g. LC(lambda = 1e-6), you get the result you expected.

1 Like