How is logistic regression trained, and why does it have no closed-form solution like OLS linear regression?
Role: Data Scientist
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how logistic regression fits its weights and why it has no closed-form solution the way ordinary least squares does. Tests the log-likelihood and its gradient, iterative solvers such as Newton's method and L-BFGS, and what convexity of the log-loss does and does not guarantee.