Lab 1: Warmup

Objectives

Step 0: Get a Kaggle account

You’ll need an account on Kaggle.

You’ll also need to verify your phone number in order to get access to GPUs, but we’ll do that in the “Image Classifier” section below.

Note: You can also do this on Google Colab; you’ll see links at the notebook sections for that. If you’re using Kaggle, though, ignore the Colab links. I don’t recommend trying to run this on your own computer at this point; even if you have a compatible GPU, getting Python to work with it can be a project.

Step 1: Jupyter Notebooks

In this section, we’ll practice working with Jupyter notebooks. You may find these references helpful:

A number will appear next to each of the code cells when they have run successfully.

Note carefully the difference between Command mode and Edit mode.

I highly encourage you to get comfortable with keyboard shortcuts for the following operations:

For more keyboard shortcuts click the Command Palette button on the bottom toolbar on Kaggle (it may be hidden by a cookie consent bar!) or use a search engine.

When you’re done, save your notebook and submit it on Moodle.

Step 2: Image Classifier

In the next section, you’ll work with a basic image classifier.

Note: The first time you log into Kaggle, you’ll need to Verify your phone number to get Internet and GPU access. So:

  1. On the right sidebar, find “Session Options”.
  2. At the bottom of the notebook options, check for a message that reads like “Want more power? Get phone verified”. Click that link and follow the instructions.
  3. Turn on Internet access.
  4. Switch Accelerator to GPU (either GPU option works; you might try to benchmark the difference sometime, not now).

If you have any trouble with this,

In this section (and most future Labs), the tasks to do are inside the notebook itself. You’ll find cells labeled Task and blank code chunks usually labeled # your code here. Follow the instructions top-to-bottom, then download and submit when done.

Checklist:

Discussion 1: What's AI useful for?