Machine learning basics
8 minAfter this lesson you can tell which features learn from data, then sketch how a recommendation feature gets better or worse with what people tap.
Lesson video
Tastebud · 7:31 · Captions on screen
A model learns only from its examples, so what the data shows, and what it leaves out, becomes the product.
- Why. Nobody writes a learned feature's rules. It comes from past examples, so a gap or slant in them shows up on screen, and the screen collects more data like it.
- Real example. Discover Weekly updates every Monday, and Spotify reads your taste from what you search, play, skip and save. Two friends get different songs because their listening differs. (Spotify, Nov 2026)
- When to break it. Some features should not learn. Zomato's Pure Veg Mode is a fixed rule listing only pure vegetarian restaurants. Learning from what vegetarians order would let a wrong one slip in.
- Common mistake. Counting every play as taste. A child's song on repeat reads as the parent's taste. Spotify added 'Exclude from your taste profile' to the three-dot menu in October 2025.
Our take. Designers write a learning feature's training data, mostly without noticing: the screen decides what people can tap, and those taps teach the next model. Leave those calls to the data team and the data decides the product.
Some features learn from data, others follow rules
Machine learning is a program finding patterns in examples and using them to decide. A rule is a decision a person wrote down once. Most apps mix both, as these six real features show.
- Google Pay: three wrong PINs block UPI payments for 24 hours
- Zomato's Pure Veg Mode: only pure vegetarian restaurants
- Gmail's Undo Send: a timer you set, 5 to 30 seconds
- Gmail's spam filter: learns from emails people report
- Google Maps' arrival time: past and live traffic
- Spotify's Discover Weekly: what you search, play, skip and save
From Gmail, Google Pay, Google Maps, Spotify and Zomato help pages and announcements, checked Nov 2026.
A model is tested on data it has never seen
Training data is what the model learns from. Test data is a separate set held back to check it. A model that aces its training data and fails the test has memorised examples instead of learning the pattern.
In this made-up launch, a test set from the same city hides the gap
- Train on Bengaluru orders. The model learns how people in Bengaluru order.
- Test on more Bengaluru orders. The test slice was held back from training, but it comes from the same city's orders.
- Score: very good. It only proves the model works on orders like Bengaluru's.
- Launch in Lucknow. Nobody in the test ordered the way Lucknow does, so the score couldn't show the gap.
- People ignore the suggestions. The gap shows up on screen, after launch.
- Fix: add the missing people. Ask who is missing from the data, and add orders from the people you plan to serve, to training and to the test.
Design the first session, before any data exists
A brand new user has no history for the model to learn from, a problem called cold start. Netflix asks a new profile to choose a few titles, and starts anyone who skips on a popular, mixed set.
- An empty feed that fills as you browse: many leave first
- Twenty food questions before anything loads: few finish
- A few taste chips give the model a start
- Skip is always there
- Anyone who skips gets popular, mixed picks
Skip, then popular picks, is how Netflix starts new profiles, from Netflix's Help Center, Nov 2026.
Try it
Teach a toy recommender
Each dish is a past order with tags, and the toy suggests dishes that share tags with your likes. Like the three South Indian orders and skip the rest. Then switch the kids' meal you ordered for your nephew to Like.
- Masala dosa
- Idli sambar
- Filter coffee
- Chicken biryani
- Margherita pizza
- Kids' meal for your nephew
Quick check
Heavy listeners say their suggested songs get narrower every month. Which change fixes the cause?
Watch next
Watch it for How Spotify uses listening data to choose what to suggest to each person, a real version of the loop in this lesson.
Watch it for The step where the data is split, so part of it is held back to test the model after training.
Case study: Spotify Discover Weekly and DJ, taste learned from plays and skips
Connects to: 1.2 Information architecture · 1.3 User flows · 9.6 Privacy and data handling · 10.5 AI onboarding · 15.2 AI evals
Sources · checked Nov 2026
- Spotify Safety and Privacy Center: Understanding recommendationsSearching, listening, skipping and saving shape Spotify's reading of your taste (the taste profile), and Not interested and hide lead to fewer similar picks
- Spotify Newsroom: Discover Weekly turns 10 (30 Jun 2025)Discover Weekly updates every Monday and has run since 2015
- Spotify Newsroom: Exclude tracks from your taste profile (1 Oct 2025)'Exclude from your taste profile' in the three-dot menu, for sleep sounds, a child's favourite song or a one-off listen, lessening the pull of past and future plays
- Scroll: Zomato launches Pure Veg Mode and Pure Veg Fleet (19 Mar 2024)Pure Veg Mode lists only restaurants that serve vegetarian food and leaves out outlets that serve meat
- Gmail Help: Mark or unmark Spam in GmailThe Report spam button, and that reporting more spam helps Gmail catch similar emails
- Google Pay Help (India): Fix incorrect UPI PINThree wrong UPI PINs within 24 hours temporarily block UPI payments, with a 24 hour wait to try the same PIN
- Google Blog: Google Maps 101, how AI helps predict traffic and determine routes (3 Sep 2020)Maps predicts traffic and arrival times with machine learning on historical and live traffic
- Gmail Help: Unsend an emailUndo Send's cancellation period of 5, 10, 20 or 30 seconds, set in Settings
- Google Machine Learning Crash Course: Dividing the original datasetTest on examples the model was not trained on, and the test set must look like the real-world data the model will meet
- Netflix Help Center: How Netflix's recommendations system worksNew profiles are asked to choose a few titles they like (optional), people who skip start on a diverse and popular set, and the signals Netflix uses