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.
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:
a and b)m or y in Command mode)Ctrl-Enter or Shift-Enter)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.
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:
- On the right sidebar, find “Session Options”.
- 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.
- Turn on Internet access.
- 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:
argmax? Can we get it to show the name of the predicted class, not just its number?To help understand the landscape of AI and also get introduced to each other, let’s survey some examples that students find interesting.
In this week’s Discussion forum, please make a two-part post:
Post something interesting about yourself.
Suppose someone asks you: Tech companies and governments are investing hundreds of billions of dollars in AI. Is AI worth the billions or is this just a bubble? Is AI actually useful for anything in the real world?
Please post a brief (50–200 word) statement where you give an example of an application of AI that you think is useful, interesting, or important. (Try to pick an example that other students haven’t mentioned yet.) Include:
Also read your peers’ posts and reply to at least one.