🔐 Logistic Regression
Logistic regression is a linear model for binary classification. It estimates the probability that an input belongs to the positive class.Hypothesis
The model applies the logistic (sigmoid) function to a linear combination of the inputs:Cost Function
Parameters are learned by minimizing the logistic loss:Example (scikit-learn)
Interpretation
- Outputs a probability between 0 and 1.
- Decision boundary at .
- For multi-class problems, use one-vs-rest or a softmax regression extension.