Learning in Logistic Regression
Logistic regression is an instance of supervised classification in which we know the correct label (either 0 or 1) for each observation .
The system produces/predicts , the estimate for the true . We want to learn parameters ( and ) that make for each training observation as close as possible to the true . 💪
This requires two components:
- loss function: also called cost function, a metric measures the distance between the system output and the gold output
- The loss function that is commonly used for logistic regression and also for neural networks is cross-entropy loss
- Optimization algorithm for iteratively updating the weights so as to minimize this loss function
- Standard algorithm: gradient descent