Skip to content

One-to-one mentorship

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.

  1. 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.

    What you’ll makeA data-cleaning exercise you can run again
  2. Lessons 6–15 · Data analysis

    Explain a difference with a chart

    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?”

    What you’ll makeA chart that shows how you grouped the data and how many observations each group contains
  3. Lessons 16–25 · Machine learning

    Find where a model goes wrong

    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.

    What you’ll makeModel code and a table comparing validation results
  4. Lessons 26–35 · Competition practice

    Make your first submission

    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.

    What you’ll makeA competition submission and a review of your experiment

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 Li

Start with a question of your own

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.

How does a forecast get revised?

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?

Forecasting sales for day 22

Compare the forecast inputs before and after the revision
  1. Day 19Known sales
  2. Day 20Known sales
  3. Day 21Known sales
  4. Day 22Used in errorTo predict

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.

Inside the 35 lessons

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.

Lessons 01–05Python programming
  1. Process a single record with variables, conditions, and loops.
  2. Store records in a list and look up values by name in a dictionary.
  3. Turn repeated steps into a function and find the line where it fails.
  4. Filter, merge, and summarize data with NumPy and pandas.
  5. Prepare a table that another student can use for analysis.
Lessons 06–15Data science
  1. Identify the observations, features, and prediction target.
  2. Check for missing values, duplicates, outliers, and incorrect data types.
  3. Explore the data before modeling and note questions worth checking.
  4. Compare two groups using distributions, means, and medians.
  5. Choose a chart that answers your question.
  6. Look for features associated with the target.
  7. Check for inputs that you would only learn after making a prediction.
  8. Split the data into training, validation, and test sets.
  9. Explore a Kaggle dataset on your own.
  10. Use charts and a written account to explain how you cleaned the data and what you found.
Lessons 16–25Machine learning
  1. Distinguish learning from labeled examples from exploring unlabeled data.
  2. Use regression to predict a continuous value.
  3. Use a classifier to decide which class an observation belongs to.
  4. Trace a prediction through a decision tree.
  5. Compare one decision tree with a random forest.
  6. See how gradient boosting corrects predictions in successive steps.
  7. Choose accuracy, F1, or an error metric to suit the task.
  8. Use cross-validation to see how scores vary across splits.
  9. Design a new feature and test whether it helps.
  10. Compare the results of combining several models.
Lessons 26–35Kaggle competition preparation
  1. Choose a competition that fits your interests, time, team size, and experience.
  2. Read the data description and scoring rules for your chosen competition.
  3. Build a baseline model and practice submitting to the leaderboard.
  4. Design a local validation method that reflects the competition task.
  5. Improve features for your chosen problem.
  6. Compare performance before and after tuning the model.
  7. Try an advanced model suited to the task.
  8. Test the performance and stability of a model ensemble.
  9. Compare local scores with the public leaderboard and discuss why final rankings can change.
  10. Train the final model, submit predictions, and review the experiment.

During a competition, how does mentoring work?

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.

Read the rules together

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.

Work through one wrong prediction

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.

Check the final submission

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.

From a competition
to a portfolio

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.

Sample project note / Handwritten digit recognition
Question
Given a grayscale image, predict the digit it shows. Store the input pixels separately from the digit labels.
My work
I kept the validation set fixed, recorded the predictions, and compared images of 4s that the model had classified as 9s.
Next step
Are 4s with a closed loop at the top easier to mistake for 9s? I’ll mark the misread examples and compare them with 4s the model recognized correctly.
Explore the digit recognition challenge