PracHub
QuestionsLearningGuidesInterview Prep
|Home/Machine Learning/Meta

Develop a Restaurant-Recommendation Engine with Logistic Regression

Last updated: Mar 29, 2026

Quick Overview

Evaluates restaurant recommendation modeling with logistic regression. Strong answers define the target and metrics, choose behavioral, social, context, and item features, justify logistic regression as a calibrated baseline, and evaluate recommendations with offline ranking metrics and online tests.

  • medium
  • Meta
  • Machine Learning
  • Data Scientist

Develop a Restaurant-Recommendation Engine with Logistic Regression

Company: Meta

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

##### Scenario Designing a restaurant-recommendation engine for a social app. ##### Question What business goal and engagement metrics would you track for restaurant recommendations? Which behavioral, demographic and social features would you include in the model and why? Which model would you choose? Explain why logistic regression may be appropriate. How would you evaluate whether the logistic-regression model is accurate? Define precision, recall and accuracy, give their formulas, and explain which you would prioritize here. ##### Hints Define target clearly, discuss feature–label alignment, and link evaluation metric to business goal.

Quick Answer: Evaluates restaurant recommendation modeling with logistic regression. Strong answers define the target and metrics, choose behavioral, social, context, and item features, justify logistic regression as a calibrated baseline, and evaluate recommendations with offline ranking metrics and online tests.

Related Interview Questions

  • Self-Attention: Implementation, Complexity, and Efficient Variants - Meta (hard)
  • Machine Learning Fundamentals: Optimizers, Scaling Laws, and Clustering - Meta (hard)
  • Implement 1NN Embeddings and Forward Pass - Meta (hard)
  • Design and evaluate an ads ranking algorithm - Meta (easy)
  • How would you design a Shop Ads ranking algorithm? - Meta (easy)
|Home/Machine Learning/Meta

Develop a Restaurant-Recommendation Engine with Logistic Regression

Meta logo
Meta
Jul 12, 2025, 6:59 PM
mediumData ScientistTechnical ScreenMachine Learning
108
0

Develop a Restaurant Recommendation Engine with Logistic Regression

You are designing a restaurant recommendation engine for a social app. You need to define the business goal, choose features, justify a modeling approach, and evaluate a logistic-regression model.

Constraints & Assumptions

  • Treat this as a first-version recommender design, not a full deep-learning ranking system.
  • Define the prediction target and label window before choosing features.
  • Avoid leakage from post-impression actions.
  • Include engagement metrics, model metrics, and product guardrails.

Clarifying Questions to Ask Guidance

  • What user action should the recommender optimize: click, save, directions, reservation, order, or repeat visit?
  • Where will recommendations appear, and how many restaurants are shown?
  • What data is available on users, restaurants, social graph, location, and context?
  • Is interpretability important for product or business stakeholders?

Part 1 - Define Goal and Metrics

What business goal and engagement metrics would you track for restaurant recommendations?

What This Part Should Cover Guidance

  • Goal such as helping users discover relevant restaurants and increasing local engagement or downstream actions.
  • Metrics such as CTR, saves, directions, reservations, orders, repeat usage, retention, hides, and complaints.
  • Guardrails for diversity, quality, fairness, privacy, and over-personalization.

Part 2 - Choose Features

Which behavioral, demographic, social, context, and item features would you include, and why?

What This Part Should Cover Guidance

  • User preferences, past restaurant interactions, cuisine affinity, location context, time, price, distance, popularity, restaurant quality, freshness, and social signals.
  • Cold-start features for new users and restaurants.
  • Leakage and privacy checks.

Part 3 - Choose Logistic Regression

Why might logistic regression be appropriate?

What This Part Should Cover Guidance

  • Binary outcome modeling, probability scoring, interpretability, speed, calibration, and strong baseline behavior.
  • Feature engineering needed for nonlinearities and interactions.
  • Limitations compared with more expressive ranking models.

Part 4 - Evaluate the Model

How would you evaluate whether the logistic-regression model is accurate and useful?

What This Part Should Cover Guidance

  • Offline metrics such as AUC, PR-AUC, log loss, calibration, precision, recall, accuracy, and lift at top K.
  • Online metrics from A/B tests and guardrails.
  • Segment analysis, cold-start evaluation, and selection-bias concerns.

Part 5 - Define Classification Metrics

Define precision, recall, and accuracy, provide their formulas, and state which metric or metrics you would prioritize for this use case.

What This Part Should Cover Guidance

  • Correct formulas and interpretation.
  • Why ranking, precision at K, calibration, or downstream conversion may matter more than raw accuracy.
  • Trade-off between showing fewer high-confidence recommendations and discovering broader user interests.

What a Strong Answer Covers Guidance

A strong answer frames the recommendation task clearly, uses features available at ranking time, justifies logistic regression as a baseline, evaluates both offline and online impact, and chooses metrics that match a top-K recommendation product.

Follow-up Questions Guidance

  • How would you handle restaurants with no historical interactions?
  • What if the model has high accuracy but low click lift online?
  • How would you prevent the model from recommending only popular restaurants?
Loading comments...

Browse More Questions

More Machine Learning•More Meta•More Data Scientist•Meta Data Scientist•Meta Machine Learning•Data Scientist Machine Learning

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

Master your tech interviews with 9,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.