Challenge 1: Let’s start exploring!

Home - Next Challenge >

Introduction

As depicted in the overview diagram, the first step of any ML project is data analysis and maybe some experimentation. Jupyter notebooks are great for interactive exploration. We can run those locally, but Vertex AI provides managed environments where you get to run Jupyter with the right security controls.

Description

Create a User-Managed Notebook on Vertex AI. Pick a region close to you, create a simple vanilla Python3 notebook instance (with no GPUs) and make sure that you’ve selected the single user only option.

It’s a good practice to have isolated virtual environments for experiments, so create a new virtual environment and install that as a kernel. See this gist for the instructions.

We’ve prepared a sample project on Github, navigate there and download the project as a zip file and extract the contents of the zip file into your notebook environment. Open the notebook 01-tip-toe-vertex-ai.ipynb, make sure that you’ve selected the newly created kernel. You should now be able to run the first notebook and get familiar with some of the Vertex AI concepts.

Success Criteria

  1. There’s a new User-Managed Notebook
  2. The sample notebook 01-tip-toe-vertex-ai.ipynb is successfully run and a model file is generated/stored in Google Cloud Storage
  3. No code changes are needed for this challenge

Tips

  • Some of the required settings can be found in the Advanced Settings section when you’re creating a new User-Managed Notebook.
  • If there’s nothing mentioned in the instructions about a parameter, stick to the defaults (this applies to all of the challenges).
  • You can download the zip file to your local machine and then upload it to the Notebook, but you can also get the zip URL and use the wget (or curl) command from the notebook environment.
  • Not using a dedicated and isolated environment/kernel might cause dependency conflicts as User-Managed Notebook instances come pre-installed with some versions of the required libraries.
  • The notebook createas a bucket in a specific region, take note of that as you’ll need that information in the next challenges.

Learning Resources

Home - Next Challenge >