What determines whether a classifier produces a linear or non-linear decision boundary?

Quick Overview

Asks what makes a classifier's decision boundary a straight hyperplane or a curved surface. Tests understanding of decision functions, link functions, feature maps and kernels, and how model families such as logistic regression, trees, k-NN, LDA and QDA differ in boundary shape.

What determines whether a classifier produces a linear or non-linear decision boundary?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What determines whether a classifier produces a linear or non-linear decision boundary? ```hint Write the decision rule Write down the set of inputs where the model is exactly undecided between two classes, and check whether that equation is linear in the original features. ``` ### What a Strong Answer Covers - The condition for a linear boundary, stated in terms of the model's decision function - Why a sigmoid or other monotonic link does not curve the boundary - The main ways a model becomes non-linear in the raw inputs, with examples of model families - How the covariance assumptions of generative classifiers set the boundary shape - That linearity is defined relative to a feature space ### Follow-up Questions - Why does a deep network with no activation functions collapse to a linear model? - An RBF SVM is linear in some feature space. Which one, and why is it never computed explicitly? - When would you choose a linear model with engineered features over a non-linear model? - What does a decision tree's boundary look like when the true boundary is a diagonal line, and why does it need many splits?

Overview: Asks what makes a classifier's decision boundary a straight hyperplane or a curved surface. Tests understanding of decision functions, link functions, feature maps and kernels, and how model families such as logistic regression, trees, k-NN, LDA and QDA differ in boundary shape.

General logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What determines whether a classifier produces a linear or non-linear decision boundary?

What a Strong Answer Covers Guidance

  • The condition for a linear boundary, stated in terms of the model's decision function
  • Why a sigmoid or other monotonic link does not curve the boundary
  • The main ways a model becomes non-linear in the raw inputs, with examples of model families
  • How the covariance assumptions of generative classifiers set the boundary shape
  • That linearity is defined relative to a feature space

Follow-up Questions Guidance

  • Why does a deep network with no activation functions collapse to a linear model?
  • An RBF SVM is linear in some feature space. Which one, and why is it never computed explicitly?
  • When would you choose a linear model with engineered features over a non-linear model?
  • What does a decision tree's boundary look like when the true boundary is a diagonal line, and why does it need many splits?