Question 1Easy
Which loss is normally minimised when training logistic regression?
- Mean squared error with a linear output
- Binary cross-entropy (log loss)
- Hinge loss
- Gini impurity
Answer: B. Binary cross-entropy (log loss)
Explanation
Log loss is the negative log-likelihood of the labels and is convex for logistic regression.
Step-by-step solution
- Model gives p = P(y=1).
- Loss = -[y log p + (1-y) log(1-p)].
- Minimise it by gradient descent.
Why the other options are wrong
- A. MSE with sigmoid makes a non-convex surface; log loss is the standard.
- C. Hinge loss belongs to SVMs.
- D. Gini is a decision-tree split criterion.