What is a heuristic baseline?

Quick Overview

Asks what a heuristic baseline is, with examples from spam filtering, recommendation, forecasting and churn, and why teams build one before training a model. Tests understanding of rule-based reference points, how they differ from trivial baselines, and how to compare a model against them fairly.

What is a heuristic baseline?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is a heuristic baseline? Give a few examples, and explain why you would build one before training a machine learning model. ```hint Think before the model Picture how a domain expert with no machine learning would solve the task with a simple rule, and what that rule tells you about any model you build later. ``` ### What a Strong Answer Covers - A clear definition: a hand-crafted rule with no learning, or only trivial learning - Concrete examples for a few different task types - Why it is built first: a realistic bar, low cost, a test of the full pipeline, and captured domain knowledge - How it differs from a trivial baseline such as the majority class or the mean, and why to compare against both - How to compare a model against the heuristic fairly ### Follow-up Questions - How would you build a heuristic baseline for fraud detection on card transactions? - Your model beats the heuristic by a small margin. How do you decide whether to ship it? - When would you ship the heuristic and skip building a model for now?

Overview: Asks what a heuristic baseline is, with examples from spam filtering, recommendation, forecasting and churn, and why teams build one before training a model. Tests understanding of rule-based reference points, how they differ from trivial baselines, and how to compare a model against them fairly.

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

What is a heuristic baseline? Give a few examples, and explain why you would build one before training a machine learning model.

What a Strong Answer Covers Guidance

  • A clear definition: a hand-crafted rule with no learning, or only trivial learning
  • Concrete examples for a few different task types
  • Why it is built first: a realistic bar, low cost, a test of the full pipeline, and captured domain knowledge
  • How it differs from a trivial baseline such as the majority class or the mean, and why to compare against both
  • How to compare a model against the heuristic fairly

Follow-up Questions Guidance

  • How would you build a heuristic baseline for fraud detection on card transactions?
  • Your model beats the heuristic by a small margin. How do you decide whether to ship it?
  • When would you ship the heuristic and skip building a model for now?