Restaurant recommendation 2: How do you build the model? What kind of features will you use? How do we evaluate your model performance?

Instruction: We are going to add a new feature that recommends nearby restaurants when users use our map app, think about Google Maps.

Updated

Example answer

I would separate candidate retrieval from ranking. Retrieve restaurants within a relevant travel area using a chosen or permitted location, then apply known constraints such as stated hours and explicit preferences. Track freshness and uncertainty: an opening-hours record or dietary tag is not a guarantee.

Start with a distance-and-quality baseline. Compare a logistic or boosted ranker predicting a defined useful action after a shown recommendation, using features such as travel time, cuisine match, price range, available hours, review count/recency and permitted past preferences. Do not assume that inferred visits are observable. For cold-start users, rely on requested filters and context rather than invented interests.

Log eligible candidates, displayed positions, timestamps and the actual outcome definition. Train on mature outcomes with features available at serving time; keep later periods for evaluation and account for repeated users. Unshown restaurants are not known dislikes, and clicks are influenced by position. Use reviewed relevance sets or a justified exploration/logging design to interpret offline ranking comparisons.

Evaluate ranking quality, coverage, stale/unsuitable suggestions and latency. In a controlled rollout, measure useful decisions and satisfaction with navigation and privacy guardrails. A directions request or partner reservation has its own meaning; it is not automatically a completed visit. Keep a useful fallback when location or personalization is unavailable.

Related Questions