ML-2 Note: Linear Models for Classification and GLMs
ML-2 Note: Linear Models for Classification and GLMs 1. Why Classification Uses Logistic Regression In classification problems, the target variable is discrete. Binary classification example: $$y \in \left\{ 0,1 \right\}$$ Given input features $$x \in \mathbb{R}^d$$ we want to model $$P(y=1|x)$$ Problem with Linear Regression A linear model predicts $$f(x) = w^T x$$ but $$w^T x \in (-\infty, \infty)$$ while probabilities must satisfy $$P(y=1|x) \in [0,1]$$ Thus we need a function that maps ...