Lessons 1–5 · Python basics
Read your first table
Each row is a person. Each column offers a clue. Learn how variables and conditions work, then write a filter and check exactly which records it picks out.
From reading a row of data to submitting a prediction. Students in grades 8–12
work through four stages over about six months in 35 individual online lessons.
Lessons 1–5 · Python basics
Each row is a person. Each column offers a clue. Learn how variables and conditions work, then write a filter and check exactly which records it picks out.
Lessons 6–15 · Data analysis
Find missing values and duplicates, group the records, and plot the results. Your mentor might ask, “How many people are in each group? Could a group this small account for the difference?”
Lessons 16–25 · Machine learning
Train a decision tree and test it on data it has never seen. Look through its mistakes with your mentor and decide which inputs to change in the next experiment.
Lessons 26–35 · Competition practice
Choose a competition with your mentor, read the scoring rules, and check the file format. In lesson 28 you practice making a first submission. Use the feedback to decide which changes are worth keeping.
Each lesson lasts one hour. Your mentor adapts the starting point and choice of problem to your experience and interests.
Your one-to-one mentor
Leon earned his bachelor’s degree at Shanghai Jiao Tong University and his PhD in computer science at Stanford University. He has worked as a data scientist at Google.
Bring a chart, a piece of code, or a question to your first lesson. If you’re new to coding, you might start by explaining one row of data. If you already train models, bring a prediction that went wrong and work out with Leon what to test next.
Take a homework problem about forecasting tomorrow’s sales. Once the code runs, your mentor asks a second question. What information would you actually have when making that forecast?
The first draft includes the actual sales for day 22 in its average. That makes the forecast look accurate in hindsight, but tomorrow’s sales are still unknown when the prediction is due.
Use sales from days 19, 20, and 21 to estimate day 22. Then set aside the next few consecutive days to test the method and record its errors.
Each step in a first data project builds on the last. You clean a table to make a chart. A difference you notice in the chart suggests a new model input. Then you test whether it improves your predictions.
Open a stage to see what you’ll work on in each lesson. Your mentor adjusts the depth of the exercises to suit your experience.
After the 35 core lessons, students enter a real competition. Everyone follows the same rules, but the decisions each student makes can be quite different.
Start with the input files and a sample submission. Check scoring, eligibility, and dates. If economics interests you, compare tasks that predict a numerical value. If you enjoy working with images, try a classification problem.
Bring your notebook and a record the model got wrong. Check the data split and code with your mentor, choose one change to make, and compare the results on the same validation set.
Run the final notebook from the beginning. Check column names, row count, and the range of predictions against the example file. On a team, keep track of who wrote each piece of code and ran each experiment so everyone can explain their decisions.
Your Kaggle profile can show competition results and notebooks that the rules allow you to publish. Use GitHub for shareable code and instructions, and describe your role, experiments, and results on your résumé.
Include an approach that failed. It can help the next person who reads your code understand why you chose the final method.