Home/Learning Hub/Machine Learning

Workshop 2 of 3

Machine Learning

Teach a computer to learn from examples: train a model in the browser, then in Python.

Level
Beginner. Finish the Python workshop first, or know basic Python.
Who it is for
Students who know basic Python (loops, lists, functions).
Length
5 sessions, about 5.3 hours in total
You need
  • A web browser
  • Google Teachable Machine (free, no account)
  • Google Colab (free Google account)
Before you start
Python basics. A free Google account for Google Colab.

What you will be able to do

  • Explain what machine learning is and where it is used
  • Read and summarize a small dataset
  • Train a model that predicts a number
  • Train a model that sorts things into groups
  • Judge whether a model is fair and trustworthy

Final project: A small classifier on a dataset you choose, with a one-minute demo.

The five sessions

  1. Session 1

    What Is Machine Learning?

    Understand how a computer can learn from examples instead of rules, then train your first model in the browser.

    60 min · Project: Train your own image classifier
  2. Session 2

    Looking at Data

    Use Python and pandas in Google Colab to load a small dataset, summarize it and spot a pattern.

    60 min · Project: Study time and scores
  3. Session 3

    Predicting Numbers

    Train a first model with scikit-learn that predicts a number from another number.

    60 min · Project: Score predictor
  4. Session 4

    Sorting Into Groups

    Train a classifier that decides which group something belongs to, and measure how often it is right.

    60 min · Project: Flower sorter
  5. Session 5

    Can We Trust the Model?

    Spot overfitting, think about fairness, and finish with a classifier project you can present.

    75 min · Project: Capstone: build and present a classifier

Next workshop: AI App Development