Logistic regression also known as logit regression or binary classification
Let the data be D = {($x_1$, $y_1$), ($x_2$, $y_2$), …, ($x_n$, $y_n$)} where $y_i \in {0, 1}$ is the binary label of the feature vector $x_i$. Then the logistic regression model is defined as: $$P(y_i = 1 | x_i) = \frac{1}{1 + e^{-w^T x_i+b}}$$ $$P(y_i = 0 | x_i) = \frac{1}{1 + e^{w^T x_i+b}}$$ where $w$ is the parameter vector. Note that $$P(y_i = 1 | x_i) + P(y_i = 0 | x_i) = 1$$ ...