Start here
Learning path
New to machine learning? Go through these in order. Each one is short, and the ones marked interactive let you try the idea yourself. Not sure where you stand? Take the quiz first. All the lessons are also on one page: Training basics.
- 6 stages
- 11 short lessons
- About 11 minutes of reading
Start here Your progress is saved in this browser only.
Start with lesson 1-
1Get the big picture
-
2Get good labels
- Labeling data: write the rules firstA model learns only what its labels teach it, and labels are only consistent when everyone follows the same written rules.
- Checking label qualityHave two people label the same examples. How often they agree, beyond chance, tells you whether the task is clear enough to learn.
- Label less: active learning and draftsYou rarely need to label everything. Label the examples that teach the model most, and let a model draft labels for people to check.
-
3Train a model well
- Train, validation and test splitsSplit your data so you can check the model on examples it has never seen.
- Overfitting and underfittingOverfitting is memorizing the training data; underfitting is not learning enough from it.
- Hyperparameters that matter mostHyperparameters are the settings you choose before training. A few matter far more than the rest.
- Picking the right metricThe metric should match what a mistake costs in real life.
-
4Run it for real
-
5Follow a real project
- How to build a spam filter, start to finishA complete walkthrough: from a folder of labeled messages to a working spam-detection API, using a model that trains in seconds on a laptop.
- How to predict customer churn from your order historyUse the order history you already have to rank customers by how likely they are to stop buying, so your team can reach out to the right people before they leave.
- How to build a chatbot that answers questions from your PDFsBuild an assistant that answers questions using your own documents (policies, manuals, handbooks) and shows exactly which page each answer came from.
- How to forecast daily sales for each storeTurn your sales history into a forecast of the next 14 days for every store, with a range around each number, so ordering and staffing stop being guesswork.
- How to recommend products your customers will likeTurn your order history into a list of products each customer is likely to buy next, and into “goes well with” suggestions on every product page.
- How to find defective products in photosSpot scratched, cracked or stained products from a camera on the line, and send only the doubtful ones to a person.
- How to spot failing machines from sensor dataWarn your maintenance team a day or two before a machine breaks down, from the temperature, vibration and pressure readings you already collect.
- How to predict delivery timesShow customers a delivery estimate they can trust, worked out from the order, the distance and how busy things are right now.
- How to sort customer reviews by sentimentTurn a pile of reviews into a clear signal: which customers are happy, which are not, and whether it’s getting better or worse, using labels you already have.
- How to detect fraudulent transactionsFlag the few transactions that are fraud among thousands that aren’t, without burying your review team in false alarms.
- How to predict house pricesEstimate what a home will sell for from its size, quality and location, and know how far off the estimate is likely to be.
- How to route support tickets to the right teamSend each new ticket straight to the team that can solve it, and send the unclear ones to a person, so customers stop waiting while tickets bounce between queues.
- How to forecast call volume and plan staffingPredict how many calls, chats or tickets will arrive each hour next week, and how many people you need on shift to answer them without long waits.
- How to flag unusual expense claimsPoint your finance team at the few expense claims worth a second look, out of thousands, when you don’t yet have examples of what a problem looks like.
- How to label data for machine learningMost model problems start as labeling problems. Plan, check and speed up your labeling, with a support-ticket example and code you can run on your own labels.
- How to build your first machine learning model in Google ColabGo from an empty page to a working model that predicts which website visits end in a purchase, in your browser, without installing anything.
- How to predict customer lifetime valueKnow within three months which new customers will be worth the most, so you can look after them, and spend your marketing budget where the valuable customers come from.
- How to build a support chatbot from your help centerAnswer customers’ questions from your own help articles, link the article each answer came from, and pass the conversation to a person when the articles don’t cover it.
- How to sort product photos into categoriesTag every new product photo with its category, so listings land in the right place, and ask a person only about the photos the model isn’t sure of.
- How to predict which employees might leaveUse the HR records you already keep to see where people are likely to resign in the next year, and why, so you can fix the causes team by team before good people leave.
- How to forecast inventory demand and set reorder pointsKnow when to reorder each product, so you stop running out of the items that take weeks to arrive, and stop tying up money in the ones that arrive in days.
-
6Build your own