Learn by building
Guides
Real projects, start to finish. Each guide walks through one model from the first decision to running it in production, with code you can copy.
- 21 guides
- 8 kinds of model
- Each one runs in Google Colab
Rows in a table
-
Predict customer churn from your order history
- A clear, measurable definition of churn for your business
- Features built from order history without leaking the future
- A model that ranks customers by churn risk, refreshed every week
-
Predict delivery times
- An estimate in minutes for every order, at checkout
- A time window that’s met for 9 orders out of 10
- An honest comparison with the simple averages most apps start with
-
Detect fraudulent transactions
- A model that scores every transaction by how likely it is to be fraud
- An alert threshold chosen from what fraud and reviews cost
- A plan for late labels and fraud that keeps changing
-
Predict house prices
- A model that estimates a sale price from a home’s details
- An honest error in dollars and in percent, from cross-validation
- A clear view of which homes it can’t price, and why
-
Flag unusual expense claims
- Simple rules for problems you already know about, such as duplicate claims
- An oddness score for every claim, from a model that learns what normal looks like
- A short review list with a reason for each claim, and labels from every review
-
Build your first machine learning model in Google Colab
- A Colab notebook you can run again whenever you like
- A model that predicts whether a visit ends in a purchase, checked on visits it never saw
- The habits every later project needs: a test set, a baseline and a saved model
-
Predict customer lifetime value
- A prediction of each customer’s spend over the next 12 months, from their first 90 days
- A ranking that finds the customers who will bring in most of next year’s revenue
- A comparison of acquisition channels by the value of the customers they bring
-
Predict which employees might leave
- A model that gives each employee a chance of resigning in the next 12 months, tested on a later year
- Checks that those chances are honest, and that the model works as well for different groups of people
- A team-by-team report of expected leavers and the conditions behind them
Numbers over time
-
Forecast daily sales for each store
- A forecast of daily sales for every store, two weeks ahead
- An honest measure of how accurate it is, tested on past weeks
- A range for each day that real sales fall inside about 80% of the time
-
Spot failing machines from sensor data
- An hourly check that compares every machine with its own normal
- Alerts that say which reading is off, and by how much
- An honest measure: failures caught, hours of warning, false alarms a day
-
Forecast call volume and plan staffing
- A forecast of contacts per day for the week ahead, updated every week
- An hour-by-hour profile that turns daily totals into a staffing plan
- A plan that staffs for a busy week, not an average one
-
Forecast inventory demand and set reorder points
- A forecast of how much each item will sell while you wait for a delivery
- Safety stock for each item, sized from how wrong past forecasts were
- A day-by-day replay on past sales that shows how often each policy runs out and how much stock it holds
Text and documents
-
Build a spam filter, start to finish
- A model that reads a message and returns how likely it is to be spam
- A threshold chosen so real messages are almost never blocked
- A small web API your app can call
-
Build a chatbot that answers questions from your PDFs
- A searchable index of your PDFs, split into small passages
- A chatbot that answers only from those passages and cites the page
- A test set that tells you whether a change made it better or worse
-
Sort customer reviews by sentiment
- A model that reads a review and says positive, neutral or negative
- An honest score across all three classes, not just the common one
- A weekly sentiment trend for reviews, emails or survey answers
-
Route support tickets to the right team
- A model that reads a ticket and picks the team that should handle it
- A confidence threshold: sure tickets route themselves, unsure ones go to triage
- A feedback loop from tickets that get moved to another team
-
Label data for machine learning
- Labeling guidelines that two people apply the same way
- Quality checks: agreement between labelers, and a gold set with known answers
- A labeling loop where the model picks the next examples and drafts labels
-
Build a support chatbot from your help center
- A search over your help articles, one passage per section
- A chatbot that answers only from those passages and links the article
- A hand-over to your team when the answer isn’t there, and a weekly list of what’s missing
Images, audio and recommendations
-
Recommend products your customers will like
- Personal recommendations for every customer, refreshed every night
- “Goes well with” suggestions for every product page
- An honest measure of how much better they are than a best-sellers list
-
Find defective products in photos
- A model that scores every photo for defects, from a few hundred pictures
- A threshold chosen from what a missed defect costs you
- Pass, reject or “check by hand” for every part on the line
-
Sort product photos into categories
- A model that sorts photos into your categories, and says how sure it is
- A confusion matrix that shows which categories it mixes up
- Automatic filing for confident photos, and a short review list for the rest