How many classes can logistic regression handle, and how do multinomial and one-vs-rest differ?

Quick Overview

Asks how logistic regression extends beyond two classes and how the multinomial softmax model compares with one-vs-rest. Tests understanding of multiclass formulations, probability outputs and calibration, and when each approach fits the problem.

How many classes can logistic regression handle, and how do multinomial and one-vs-rest differ?

Role: Data Scientist

Category: Machine Learning

Difficulty: easy

Interview Round: Other

For how many classes can logistic regression be used? Explain multinomial logistic regression and one-vs-rest (OvR), and how they differ. ```hint Compare the outputs Look at what each approach outputs for a single input and whether those numbers form a probability distribution. Then check what the multinomial model becomes when there are only two classes. ``` ### What a Strong Answer Covers - The binary case and the model it uses. - How one-vs-rest is trained, how it predicts, and what its outputs do and do not guarantee. - How the multinomial model is defined, what loss it is trained with, and how it relates to the binary model. - When to prefer one approach over the other, including problems where classes are not mutually exclusive. ### Follow-up Questions - Why are only K-1 of the K weight vectors identifiable in an unregularized multinomial model? - How does class imbalance affect each of the K binary problems in one-vs-rest? - Your labels are not mutually exclusive (an article can be both "sports" and "business"). Which formulation fits, and why? - What is one-vs-one, and when is it used instead?

Overview: Asks how logistic regression extends beyond two classes and how the multinomial softmax model compares with one-vs-rest. Tests understanding of multiclass formulations, probability outputs and calibration, and when each approach fits the problem.

General logo
General
Nov 24, 2026
easyData ScientistOtherMachine Learning
0
0

For how many classes can logistic regression be used? Explain multinomial logistic regression and one-vs-rest (OvR), and how they differ.

What a Strong Answer Covers Guidance

  • The binary case and the model it uses.
  • How one-vs-rest is trained, how it predicts, and what its outputs do and do not guarantee.
  • How the multinomial model is defined, what loss it is trained with, and how it relates to the binary model.
  • When to prefer one approach over the other, including problems where classes are not mutually exclusive.

Follow-up Questions Guidance

  • Why are only K-1 of the K weight vectors identifiable in an unregularized multinomial model?
  • How does class imbalance affect each of the K binary problems in one-vs-rest?
  • Your labels are not mutually exclusive (an article can be both "sports" and "business"). Which formulation fits, and why?
  • What is one-vs-one, and when is it used instead?