Logistic regression

Applies to: python, general

Logistic regression predicts a probability for a class by applying a sigmoid to a linear score.

p = 1 / (1 + np.exp(-z))

See also: sigmoid, cross-entropy