How do you choose between a linear model, a tree-based ensemble, and a deep neural network for a given problem?

Quick Overview

Asks how to decide between a linear model, a tree-based ensemble such as gradient boosting, and a deep neural network for a new problem. Tests judgment about data type and size, the kind of signal each family captures, interpretability and latency constraints, and fair model comparison.

How do you choose between a linear model, a tree-based ensemble, and a deep neural network for a given problem?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do you choose between a linear model, a tree-based ensemble, and a deep neural network for a given problem? Describe what you look at in the data and the requirements, and how you would settle the choice in practice. ```hint Start from the input Ask first what the input looks like: a table of engineered features, a very sparse high-dimensional vector, or raw images, audio and text. ``` ```hint Constraints beyond accuracy List the requirements other than accuracy that can rule a model family out before you train anything. ``` ### What a Strong Answer Covers - How the type of input and the amount of data steer the choice - The kinds of signal each family captures well or poorly, including interactions and extrapolation - Constraints beyond accuracy: interpretability, latency, compute and maintenance - A practical process for comparing candidates fairly ### Follow-up Questions - A gradient-boosted model beats your logistic regression by half a point of AUC but is twenty times slower to serve. How do you decide? - Why do tree ensembles extrapolate poorly, and what would you do about a feature that will drift outside its training range? - When would you consider a neural network for tabular data? - How would you combine families, for example feeding embeddings from a network into a boosted model?

Overview: Asks how to decide between a linear model, a tree-based ensemble such as gradient boosting, and a deep neural network for a new problem. Tests judgment about data type and size, the kind of signal each family captures, interpretability and latency constraints, and fair model comparison.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How do you choose between a linear model, a tree-based ensemble, and a deep neural network for a given problem?

Describe what you look at in the data and the requirements, and how you would settle the choice in practice.

What a Strong Answer Covers Guidance

  • How the type of input and the amount of data steer the choice
  • The kinds of signal each family captures well or poorly, including interactions and extrapolation
  • Constraints beyond accuracy: interpretability, latency, compute and maintenance
  • A practical process for comparing candidates fairly

Follow-up Questions Guidance

  • A gradient-boosted model beats your logistic regression by half a point of AUC but is twenty times slower to serve. How do you decide?
  • Why do tree ensembles extrapolate poorly, and what would you do about a feature that will drift outside its training range?
  • When would you consider a neural network for tabular data?
  • How would you combine families, for example feeding embeddings from a network into a boosted model?